< prev index next >

test/compiler/intrinsics/sha/cli/TestUseSHA256IntrinsicsOptionOnUnsupportedCPU.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


  23 
  24 /**
  25  * @test
  26  * @bug 8035968
  27  * @summary Verify UseSHA256Intrinsics option processing on unsupported CPU,
  28  * @library /testlibrary /../../test/lib /compiler/testlibrary testcases
  29  * @modules java.base/sun.misc
  30  *          java.management
  31  * @build TestUseSHA256IntrinsicsOptionOnUnsupportedCPU
  32  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  33  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  34  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  35  *                   -XX:+WhiteBoxAPI
  36  *                   TestUseSHA256IntrinsicsOptionOnUnsupportedCPU
  37  */
  38 public class TestUseSHA256IntrinsicsOptionOnUnsupportedCPU {
  39     public static void main(String args[]) throws Throwable {
  40         new SHAOptionsBase(
  41                 new GenericTestCaseForUnsupportedSparcCPU(
  42                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  43                 new UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
  44                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  45                 new GenericTestCaseForUnsupportedX86CPU(




  46                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  47                 new GenericTestCaseForOtherCPU(
  48                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION)).test();
  49     }
  50 }


  23 
  24 /**
  25  * @test
  26  * @bug 8035968
  27  * @summary Verify UseSHA256Intrinsics option processing on unsupported CPU,
  28  * @library /testlibrary /../../test/lib /compiler/testlibrary testcases
  29  * @modules java.base/sun.misc
  30  *          java.management
  31  * @build TestUseSHA256IntrinsicsOptionOnUnsupportedCPU
  32  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  33  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  34  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  35  *                   -XX:+WhiteBoxAPI
  36  *                   TestUseSHA256IntrinsicsOptionOnUnsupportedCPU
  37  */
  38 public class TestUseSHA256IntrinsicsOptionOnUnsupportedCPU {
  39     public static void main(String args[]) throws Throwable {
  40         new SHAOptionsBase(
  41                 new GenericTestCaseForUnsupportedSparcCPU(
  42                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),


  43                 new GenericTestCaseForUnsupportedX86CPU(
  44                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  45                 new GenericTestCaseForUnsupportedAArch64CPU(
  46                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  47                 new UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU(
  48                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION),
  49                 new GenericTestCaseForOtherCPU(
  50                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION)).test();
  51     }
  52 }
< prev index next >