Skip to content

Commit 3853c36

Browse files
author
duke
committed
Backport 3270a7d3591eac44705ff5d76c6f59cfb14f5ac0
1 parent 7ce55b9 commit 3853c36

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
@@ -1698,7 +1698,7 @@ void MacroAssembler::vector_update_crc32(Register crc, Register buf, Register le
16981698
for (int i = 0; i < N; i++) {
16991699
vmv_x_s(tmp2, vcrc);
17001700
// in vmv_x_s, the value is sign-extended to SEW bits, but we need zero-extended here.
1701-
zext_w(tmp2, tmp2);
1701+
zext(tmp2, tmp2, 32);
17021702
vslidedown_vi(vcrc, vcrc, 1);
17031703
xorr(crc, crc, tmp2);
17041704
for (int j = 0; j < W; j++) {

0 commit comments

Comments
 (0)