[riscv-port] RFR: 8281967: riscv: Intrinsify bigIntegerLeftShift

Taiping Guo tguo at openjdk.java.net
Mon Feb 28 10:37:38 UTC 2022


BigInteger intrinsic: bigIntegerLeftShift intrinsic is missed in current vm. It should be implemented.
Considering that there is no hardware that supports rvv1.0, we use `test/jdk/java/math/BigInteger/ModPow.java` testcase to compare the number of instructions generated by C2 and intrinsic, and the instructions for the method `shiftLeftImplWorker` shows that the number of instructions generated by C2 is 9.2x that of intrinsic.

Full jtreg tests on qemu are passed without new failures.

-------------

Commit messages:
 - 8281967: riscv: Intrinsify bigIntegerLeftShift

Changes: https://git.openjdk.java.net/riscv-port/pull/61/files
 Webrev: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=61&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8281967
  Stats: 61 lines in 1 file changed: 61 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/riscv-port/pull/61.diff
  Fetch: git fetch https://git.openjdk.java.net/riscv-port pull/61/head:pull/61

PR: https://git.openjdk.java.net/riscv-port/pull/61


More information about the riscv-port-dev mailing list