< prev index next >

test/compiler/intrinsics/sha/cli/SHAOptionsBase.java

Print this page
rev 8431 : 8081790: aarch64: SHA tests fail
Summary: Fix SHA tests in JTReg so they recognize aarch64
Reviewed-by: duke
Contributed-by: alexander.alexeev@caviumnetworks.com

@@ -69,11 +69,11 @@
      *                   be returned.
      * @return A warning message that will be printed out to VM output if CPU
      *         instructions required by the option are not supported.
      */
     protected static String getWarningForUnsupportedCPU(String optionName) {
-        if (Platform.isSparc()) {
+        if (Platform.isSparc() || Platform.isAArch64()) {
             switch (optionName) {
                 case SHAOptionsBase.USE_SHA_OPTION:
                     return SHAOptionsBase.SHA_INSTRUCTIONS_ARE_NOT_AVAILABLE;
                 case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION:
                     return SHAOptionsBase.SHA1_INSTRUCTION_IS_NOT_AVAILABLE;
< prev index next >