Skip to content

Commit 3270a7d

Browse files
author
Hamlin Li
committed
8355476: RISC-V: using zext_w directly in vector_update_crc32 could trigger assert
Reviewed-by: fyang, fjiang
1 parent 8e51ff7 commit 3270a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/riscv/macroAssembler_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ void MacroAssembler::vector_update_crc32(Register crc, Register buf, Register le
18061806
for (int i = 0; i < N; i++) {
18071807
vmv_x_s(tmp2, vcrc);
18081808
// in vmv_x_s, the value is sign-extended to SEW bits, but we need zero-extended here.
1809-
zext_w(tmp2, tmp2);
1809+
zext(tmp2, tmp2, 32);
18101810
vslidedown_vi(vcrc, vcrc, 1);
18111811
xorr(crc, crc, tmp2);
18121812
for (int j = 0; j < W; j++) {

0 commit comments

Comments
 (0)