src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File open Sdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test

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

Print this page




 449         /*
 450          * The intrinsics down here are known to be implemented but they are not always enabled on
 451          * the HotSpot side (e.g., because they require certain CPU features). So, we are ignoring
 452          * them if the HotSpot config tells us that they can't be used.
 453          */
 454 
 455         // CRC32 intrinsics
 456         if (!config.useCRC32Intrinsics) {
 457             add(IGNORE, "java/util/zip/CRC32.update(II)I");
 458             if (isJDK9OrHigher()) {
 459                 add(IGNORE,
 460                                 "java/util/zip/CRC32.updateByteBuffer0(IJII)I",
 461                                 "java/util/zip/CRC32.updateBytes0(I[BII)I");
 462             } else {
 463                 add(IGNORE,
 464                                 "java/util/zip/CRC32.updateByteBuffer(IJII)I",
 465                                 "java/util/zip/CRC32.updateBytes(I[BII)I");
 466             }
 467         }
 468 







 469         // AES intrinsics
 470         if (!config.useAESIntrinsics) {
 471             if (isJDK9OrHigher()) {
 472                 add(IGNORE,
 473                                 "com/sun/crypto/provider/AESCrypt.implDecryptBlock([BI[BI)V",
 474                                 "com/sun/crypto/provider/AESCrypt.implEncryptBlock([BI[BI)V",
 475                                 "com/sun/crypto/provider/CipherBlockChaining.implDecrypt([BII[BI)I",
 476                                 "com/sun/crypto/provider/CipherBlockChaining.implEncrypt([BII[BI)I");
 477             } else {
 478                 add(IGNORE,
 479                                 "com/sun/crypto/provider/AESCrypt.decryptBlock([BI[BI)V",
 480                                 "com/sun/crypto/provider/AESCrypt.encryptBlock([BI[BI)V",
 481                                 "com/sun/crypto/provider/CipherBlockChaining.decrypt([BII[BI)I",
 482                                 "com/sun/crypto/provider/CipherBlockChaining.encrypt([BII[BI)I");
 483             }
 484         }
 485 
 486         // BigInteger intrinsics
 487         if (!config.useMultiplyToLenIntrinsic()) {
 488             if (isJDK9OrHigher()) {




 449         /*
 450          * The intrinsics down here are known to be implemented but they are not always enabled on
 451          * the HotSpot side (e.g., because they require certain CPU features). So, we are ignoring
 452          * them if the HotSpot config tells us that they can't be used.
 453          */
 454 
 455         // CRC32 intrinsics
 456         if (!config.useCRC32Intrinsics) {
 457             add(IGNORE, "java/util/zip/CRC32.update(II)I");
 458             if (isJDK9OrHigher()) {
 459                 add(IGNORE,
 460                                 "java/util/zip/CRC32.updateByteBuffer0(IJII)I",
 461                                 "java/util/zip/CRC32.updateBytes0(I[BII)I");
 462             } else {
 463                 add(IGNORE,
 464                                 "java/util/zip/CRC32.updateByteBuffer(IJII)I",
 465                                 "java/util/zip/CRC32.updateBytes(I[BII)I");
 466             }
 467         }
 468 
 469         // CRC32C intrinsics
 470         if (!config.useCRC32CIntrinsics) {
 471             add(IGNORE,
 472                             "java/util/zip/CRC32C.updateBytes(I[BII)I",
 473                             "java/util/zip/CRC32C.updateDirectByteBuffer(IJII)I");
 474         }
 475 
 476         // AES intrinsics
 477         if (!config.useAESIntrinsics) {
 478             if (isJDK9OrHigher()) {
 479                 add(IGNORE,
 480                                 "com/sun/crypto/provider/AESCrypt.implDecryptBlock([BI[BI)V",
 481                                 "com/sun/crypto/provider/AESCrypt.implEncryptBlock([BI[BI)V",
 482                                 "com/sun/crypto/provider/CipherBlockChaining.implDecrypt([BII[BI)I",
 483                                 "com/sun/crypto/provider/CipherBlockChaining.implEncrypt([BII[BI)I");
 484             } else {
 485                 add(IGNORE,
 486                                 "com/sun/crypto/provider/AESCrypt.decryptBlock([BI[BI)V",
 487                                 "com/sun/crypto/provider/AESCrypt.encryptBlock([BI[BI)V",
 488                                 "com/sun/crypto/provider/CipherBlockChaining.decrypt([BII[BI)I",
 489                                 "com/sun/crypto/provider/CipherBlockChaining.encrypt([BII[BI)I");
 490             }
 491         }
 492 
 493         // BigInteger intrinsics
 494         if (!config.useMultiplyToLenIntrinsic()) {
 495             if (isJDK9OrHigher()) {


src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File