comparison graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCMathIntrinsicOp.java @ 21543:93c50cefb9e8

moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author Doug Simon <doug.simon@oracle.com>
date Mon, 25 May 2015 23:30:34 +0200
parents 3081a57f95fd
children 48c1ebd24120
comparison
equal deleted inserted replaced
21542:543957c1c6a6 21543:93c50cefb9e8
24 24
25 import static com.oracle.graal.api.code.ValueUtil.*; 25 import static com.oracle.graal.api.code.ValueUtil.*;
26 26
27 import com.oracle.graal.api.meta.*; 27 import com.oracle.graal.api.meta.*;
28 import com.oracle.graal.asm.sparc.*; 28 import com.oracle.graal.asm.sparc.*;
29 import com.oracle.graal.compiler.common.*;
30 import com.oracle.graal.lir.*; 29 import com.oracle.graal.lir.*;
31 import com.oracle.graal.lir.asm.*; 30 import com.oracle.graal.lir.asm.*;
31 import com.oracle.jvmci.common.*;
32 32
33 public final class SPARCMathIntrinsicOp extends SPARCLIRInstruction implements SPARCTailDelayedLIRInstruction { 33 public final class SPARCMathIntrinsicOp extends SPARCLIRInstruction implements SPARCTailDelayedLIRInstruction {
34 public static final LIRInstructionClass<SPARCMathIntrinsicOp> TYPE = LIRInstructionClass.create(SPARCMathIntrinsicOp.class); 34 public static final LIRInstructionClass<SPARCMathIntrinsicOp> TYPE = LIRInstructionClass.create(SPARCMathIntrinsicOp.class);
35 35
36 public enum IntrinsicOpcode { 36 public enum IntrinsicOpcode {
61 break; 61 break;
62 case Double: 62 case Double:
63 masm.fsqrtd(asDoubleReg(input), asDoubleReg(result)); 63 masm.fsqrtd(asDoubleReg(input), asDoubleReg(result));
64 break; 64 break;
65 default: 65 default:
66 GraalInternalError.shouldNotReachHere(); 66 JVMCIError.shouldNotReachHere();
67 } 67 }
68 break; 68 break;
69 case ABS: 69 case ABS:
70 switch (inputKind) { 70 switch (inputKind) {
71 case Float: 71 case Float:
73 break; 73 break;
74 case Double: 74 case Double:
75 masm.fabsd(asDoubleReg(input), asDoubleReg(result)); 75 masm.fabsd(asDoubleReg(input), asDoubleReg(result));
76 break; 76 break;
77 default: 77 default:
78 GraalInternalError.shouldNotReachHere(); 78 JVMCIError.shouldNotReachHere();
79 } 79 }
80 break; 80 break;
81 default: 81 default:
82 throw GraalInternalError.shouldNotReachHere(); 82 throw JVMCIError.shouldNotReachHere();
83 } 83 }
84 } 84 }
85 85
86 } 86 }