8334843: RISC-V: Fix wraparound checking for r_array_index in lookup_secondary_supers_table_slow_path

Reviewed-by: fyang
This commit is contained in:
Gui Cao 2024-06-28 01:44:14 +00:00 committed by Fei Yang
parent 4e8cbf884a
commit cd46c87dc9

@ -3799,7 +3799,7 @@ void MacroAssembler::lookup_secondary_supers_table_slow_path(Register r_super_kl
// Check for wraparound.
Label skip;
bge(r_array_length, r_array_index, skip);
blt(r_array_index, r_array_length, skip);
mv(r_array_index, zr);
bind(skip);