RFR: 8365732: RISC-V: implement AES CTR intrinsics [v17]

Anjian Wen wenanjian at openjdk.org
Sat Nov 8 00:38:08 UTC 2025


On Fri, 7 Nov 2025 04:09:04 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> Anjian Wen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix a jtreg problem
>
> src/hotspot/cpu/riscv/stubGenerator_riscv.cpp line 2761:
> 
>> 2759:     __ mv(t0, 52);
>> 2760:     __ blt(keylen, t0, L_aes128_loop_next);
>> 2761:     __ beq(keylen, t0, L_aes192_loop_next);
> 
> I think these branches in the loop could be saved if we do versioning according to keylen. Then we only need to do two branches on entry to choose the right version. And this also applies in the case of loadkeys.

good idea, I have change it and pass the test in
_test/hotspot/jtreg/compiler/codegen/aes/_
_test/jdk/com/sun/crypto/_

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25281#discussion_r2505914298


More information about the hotspot-compiler-dev mailing list