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

Taiping Guo tguo at openjdk.java.net
Tue Mar 1 01:42:12 UTC 2022


> BigInteger intrinsic: bigIntegerLeftShift intrinsic is missed in current vm. It should be implemented.
> Since that there is no hardware that supports rvv1.0 for now, I used `test/jdk/java/math/BigInteger/ModPow.java` testcase to compare the number of instructions executed with and without intrinsic. The number of instructions executed for the method `shiftLeftImplWorker` compiled by C2 without intrinsic is about 9.2x ( vlen=256 ) that of version with intrinsic.
> 
> Full jtreg tests on qemu are passed without new failures.

Taiping Guo has updated the pull request incrementally with one additional commit since the last revision:

  call shadd for shift+add

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

Changes:
  - all: https://git.openjdk.java.net/riscv-port/pull/61/files
  - new: https://git.openjdk.java.net/riscv-port/pull/61/files/c3f6020d..10e04ab7

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=61&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=61&range=00-01

  Stats: 10 lines in 1 file changed: 0 ins; 6 del; 4 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