changeset 53081:3791fee4df3b

8215687: [Graal] unit test CheckGraalIntrinsics failed after 8212043 Summary: add check for new intrinsics Reviewed-by: iveresov, iignatyev
author kvn
date Thu, 20 Dec 2018 14:03:56 -0800
parents 74d33d22a8df
children 2a8dfb750d2c
files src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }