< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java

Print this page
rev 60737 : 8252204: AArch64: Implement SHA3 accelerator/intrinsic
Reviewed-by: duke
Contributed-by: dongbo4@huawei.com


 555         }
 556         if (!config.useSquareToLenIntrinsic()) {
 557             add(ignore, "java/math/BigInteger.implSquareToLen([II[II)[I");
 558         }
 559         // DigestBase intrinsics
 560         if (HotSpotGraphBuilderPlugins.isIntrinsicName(config, "sun/security/provider/DigestBase", "implCompressMultiBlock0") &&
 561                         !(config.useSHA1Intrinsics() || config.useSHA256Intrinsics() || config.useSHA512Intrinsics())) {
 562             add(ignore, "sun/security/provider/DigestBase.implCompressMultiBlock0([BII)I");
 563         }
 564         // SHA intrinsics
 565         String shaCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "sun/security/provider/SHA", "implCompress0", "implCompress");
 566         if (!config.useSHA1Intrinsics()) {
 567             add(ignore, "sun/security/provider/SHA." + shaCompressName + "([BI)V");
 568         }
 569         if (!config.useSHA256Intrinsics()) {
 570             add(ignore, "sun/security/provider/SHA2." + shaCompressName + "([BI)V");
 571         }
 572         if (!config.useSHA512Intrinsics()) {
 573             add(ignore, "sun/security/provider/SHA5." + shaCompressName + "([BI)V");
 574         }

 575     }
 576 
 577     private static boolean isJDK9OrHigher() {
 578         return JavaVersionUtil.JAVA_SPEC >= 9;
 579     }
 580 
 581     private static boolean isJDK10OrHigher() {
 582         return JavaVersionUtil.JAVA_SPEC >= 10;
 583     }
 584 
 585     private static boolean isJDK11OrHigher() {
 586         return JavaVersionUtil.JAVA_SPEC >= 11;
 587     }
 588 
 589     private static boolean isJDK12OrHigher() {
 590         return JavaVersionUtil.JAVA_SPEC >= 12;
 591     }
 592 
 593     private static boolean isJDK13OrHigher() {
 594         return JavaVersionUtil.JAVA_SPEC >= 13;




 555         }
 556         if (!config.useSquareToLenIntrinsic()) {
 557             add(ignore, "java/math/BigInteger.implSquareToLen([II[II)[I");
 558         }
 559         // DigestBase intrinsics
 560         if (HotSpotGraphBuilderPlugins.isIntrinsicName(config, "sun/security/provider/DigestBase", "implCompressMultiBlock0") &&
 561                         !(config.useSHA1Intrinsics() || config.useSHA256Intrinsics() || config.useSHA512Intrinsics())) {
 562             add(ignore, "sun/security/provider/DigestBase.implCompressMultiBlock0([BII)I");
 563         }
 564         // SHA intrinsics
 565         String shaCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "sun/security/provider/SHA", "implCompress0", "implCompress");
 566         if (!config.useSHA1Intrinsics()) {
 567             add(ignore, "sun/security/provider/SHA." + shaCompressName + "([BI)V");
 568         }
 569         if (!config.useSHA256Intrinsics()) {
 570             add(ignore, "sun/security/provider/SHA2." + shaCompressName + "([BI)V");
 571         }
 572         if (!config.useSHA512Intrinsics()) {
 573             add(ignore, "sun/security/provider/SHA5." + shaCompressName + "([BI)V");
 574         }
 575         add(toBeInvestigated, "sun/security/provider/SHA3." + shaCompressName + "([BI)V");
 576     }
 577 
 578     private static boolean isJDK9OrHigher() {
 579         return JavaVersionUtil.JAVA_SPEC >= 9;
 580     }
 581 
 582     private static boolean isJDK10OrHigher() {
 583         return JavaVersionUtil.JAVA_SPEC >= 10;
 584     }
 585 
 586     private static boolean isJDK11OrHigher() {
 587         return JavaVersionUtil.JAVA_SPEC >= 11;
 588     }
 589 
 590     private static boolean isJDK12OrHigher() {
 591         return JavaVersionUtil.JAVA_SPEC >= 12;
 592     }
 593 
 594     private static boolean isJDK13OrHigher() {
 595         return JavaVersionUtil.JAVA_SPEC >= 13;


< prev index next >