< prev index next >

test/compiler/testlibrary/sha/predicate/IntrinsicPredicates.java

Print this page

        

@@ -57,28 +57,36 @@
                 == IntrinsicPredicates.TIERED_MAX_LEVEL);
         return Platform.isServer() && (!isTiered || maxLevelIsReachable);
     };
 
     public static final BooleanSupplier SHA1_INSTRUCTION_AVAILABLE
-            = new CPUSpecificPredicate("sparc.*", new String[] { "sha1" },
-                    null);
+            = new OrPredicate(
+                    new CPUSpecificPredicate("sparc.*", new String[] { "sha1" },
+                            null),
+                    new CPUSpecificPredicate("aarch64", new String[] { "sha1" },
+                            null));
 
     public static final BooleanSupplier SHA256_INSTRUCTION_AVAILABLE
-            = new OrPredicate(new CPUSpecificPredicate("sparc.*",   new String[] { "sha256" },
+            = new OrPredicate(new CPUSpecificPredicate("aarch64", new String[] { "sha256" },
+                                                       null),
+              new OrPredicate(new CPUSpecificPredicate("sparc.*",   new String[] { "sha256" },
                                                        null),
               new OrPredicate(new CPUSpecificPredicate("ppc64.*",   new String[] { "sha"    },
                                                        null),
                               new CPUSpecificPredicate("ppc64le.*", new String[] { "sha"    },
-                                                       null)));
+                                                       null))));
 
     public static final BooleanSupplier SHA512_INSTRUCTION_AVAILABLE
-            = new OrPredicate(new CPUSpecificPredicate("sparc.*",   new String[] { "sha512" },
-                                                       null),
-              new OrPredicate(new CPUSpecificPredicate("ppc64.*",   new String[] { "sha"    },
+            = new OrPredicate(
+                    new CPUSpecificPredicate("aarch64", new String[] { "sha512" },
+                                             null),
+                    new OrPredicate(new CPUSpecificPredicate("sparc.*",   new String[] { "sha512" },
+                                                             null),
+                    new OrPredicate(new CPUSpecificPredicate("ppc64.*",   new String[] { "sha"    },
                                                        null),
-                              new CPUSpecificPredicate("ppc64le.*", new String[] { "sha"    },
-                                                       null)));
+                    new CPUSpecificPredicate("ppc64le.*", new String[] { "sha"    },
+                                             null))));
 
     public static final BooleanSupplier ANY_SHA_INSTRUCTION_AVAILABLE
             = new OrPredicate(IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE,
                     new OrPredicate(
                             IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE,
< prev index next >