src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.sparc/src/jdk/vm/ci/sparc/SPARC.java
changeset 54669 ad45b3802d4e
parent 47562 f789ccebcfe4
equal deleted inserted replaced
54668:0bda2308eded 54669:ad45b3802d4e
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   311             case Float:
   311             case Float:
   312                 return SPARCKind.SINGLE;
   312                 return SPARCKind.SINGLE;
   313             case Double:
   313             case Double:
   314                 return SPARCKind.DOUBLE;
   314                 return SPARCKind.DOUBLE;
   315             default:
   315             default:
   316                 throw new IllegalArgumentException("Unknown JavaKind: " + javaKind);
   316                 return null;
   317         }
   317         }
   318     }
   318     }
   319 
   319 
   320     private static int getDoubleEncoding(int reg) {
   320     private static int getDoubleEncoding(int reg) {
   321         assert reg < 64 && ((reg & 1) == 0);
   321         assert reg < 64 && ((reg & 1) == 0);