RFR: 8345179: RISC-V: Add gtests for weak cmpxchg

Fei Yang fyang at openjdk.org
Mon Dec 2 13:08:08 UTC 2024


On Mon, 2 Dec 2024 10:46:09 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> Hi, please consider.
> 
> This adds tests of aligned weak narrow cmpxchg.
> 
> [ RUN      ] RiscV.cmpxchg_weak_int16_lr_sc_vm
> [       OK ] RiscV.cmpxchg_weak_int16_lr_sc_vm (2 ms)
> [ RUN      ] RiscV.cmpxchg_weak_int8_lr_sc_vm
> [       OK ] RiscV.cmpxchg_weak_int8_lr_sc_vm (0 ms)
> [ RUN      ] RiscV.cmpxchg_weak_int16_maybe_zacas_vm
> [       OK ] RiscV.cmpxchg_weak_int16_maybe_zacas_vm (0 ms)
> [ RUN      ] RiscV.cmpxchg_weak_int8_maybe_zacas_vm
> [       OK ] RiscV.cmpxchg_weak_int8_maybe_zacas_vm (0 ms)
> [----------] 4 tests from RiscV (20997 ms total)
> 
> Executed with -XX:+UnlockExperimentalVMOptions -XX:+UseZacas
> 
> Thanks, Robbin

Hi, Seems this only covers `MacroAssembler::weak_cmpxchg_narrow_value`. Are we going to add testing for this one: `MacroAssembler::cmpxchg_weak`?

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

PR Comment: https://git.openjdk.org/jdk/pull/22476#issuecomment-2511335263


More information about the hotspot-dev mailing list