src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
equal
deleted
inserted
replaced
62 import jdk.vm.ci.hotspot.VMIntrinsicMethod; |
62 import jdk.vm.ci.hotspot.VMIntrinsicMethod; |
63 import jdk.vm.ci.meta.MetaAccessProvider; |
63 import jdk.vm.ci.meta.MetaAccessProvider; |
64 import jdk.vm.ci.meta.MetaUtil; |
64 import jdk.vm.ci.meta.MetaUtil; |
65 import jdk.vm.ci.meta.MethodHandleAccessProvider.IntrinsicMethod; |
65 import jdk.vm.ci.meta.MethodHandleAccessProvider.IntrinsicMethod; |
66 import jdk.vm.ci.meta.ResolvedJavaMethod; |
66 import jdk.vm.ci.meta.ResolvedJavaMethod; |
|
67 import jdk.vm.ci.sparc.SPARC; |
67 |
68 |
68 /** |
69 /** |
69 * Checks the intrinsics implemented by Graal against the set of intrinsics declared by HotSpot. The |
70 * Checks the intrinsics implemented by Graal against the set of intrinsics declared by HotSpot. The |
70 * purpose of this test is to detect when new intrinsics are added to HotSpot and process them |
71 * purpose of this test is to detect when new intrinsics are added to HotSpot and process them |
71 * appropriately in Graal. This will be achieved by working through {@link #toBeInvestigated} and |
72 * appropriately in Graal. This will be achieved by working through {@link #toBeInvestigated} and |
373 } |
374 } |
374 if (!config.useFMAIntrinsics) { |
375 if (!config.useFMAIntrinsics) { |
375 add(ignore, |
376 add(ignore, |
376 "java/lang/Math.fma(DDD)D", |
377 "java/lang/Math.fma(DDD)D", |
377 "java/lang/Math.fma(FFF)F"); |
378 "java/lang/Math.fma(FFF)F"); |
378 } else if (!(arch instanceof AMD64)) { |
379 } else if (arch instanceof SPARC) { |
379 add(toBeInvestigated, |
380 add(toBeInvestigated, |
380 "java/lang/Math.fma(DDD)D", |
381 "java/lang/Math.fma(DDD)D", |
381 "java/lang/Math.fma(FFF)F"); |
382 "java/lang/Math.fma(FFF)F"); |
382 } |
383 } |
383 } |
384 } |