RFR: 8374184: RISC-V: implement GCM intrinsic with Zvkg and Zvkned extension

Anjian Wen wenanjian at openjdk.org
Tue Jan 6 06:22:34 UTC 2026


This patch implement GCM intrinsic with Zvkg and Zvkned extension in RISCV. 

According to java api of `implGCMCrypt0` in `src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java`, we only deal with the data multiples of PARALLEL_LEN(512).

Passed related jtreg in
test/hotspot/jtreg/compiler/codegen/aes/
test/jdk/com/sun/crypto/

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

Commit messages:
 - modify x10 register use
 - modify register use
 - make some clean up
 - optimize tmp register use
 - change andr to andi
 - modify the input according to api and some name
 - RISC-V: implement GCM intrinsic with Zvkg and Zvkned extension

Changes: https://git.openjdk.org/jdk/pull/28894/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28894&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8374184
  Stats: 128 lines in 1 file changed: 128 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/28894.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28894/head:pull/28894

PR: https://git.openjdk.org/jdk/pull/28894


More information about the hotspot-compiler-dev mailing list