8215687: [Graal] unit test CheckGraalIntrinsics failed after 8212043
Summary: add check for new intrinsics
Reviewed-by: iveresov, iignatyev
--- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java Fri Dec 07 16:56:53 2018 -0800
+++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java Thu Dec 20 14:03:56 2018 -0800
@@ -382,6 +382,14 @@
"java/lang/CharacterDataLatin1.isWhitespace(I)Z");
}
+ if (isJDK13OrHigher()) {
+ add(toBeInvestigated,
+ "java/lang/Math.max(DD)D",
+ "java/lang/Math.max(FF)F",
+ "java/lang/Math.min(DD)D",
+ "java/lang/Math.min(FF)F");
+ }
+
if (!config.inlineNotify()) {
add(ignore, "java/lang/Object.notify()V");
}
@@ -542,6 +550,10 @@
return GraalServices.JAVA_SPECIFICATION_VERSION >= 12;
}
+ private static boolean isJDK13OrHigher() {
+ return GraalServices.JAVA_SPECIFICATION_VERSION >= 13;
+ }
+
public interface Refiner {
void refine(CheckGraalIntrinsics checker);
}