Skip to content

Commit

Permalink
fixed lmul
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Dec 22, 2023
1 parent cc4f2a8 commit eefcd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/stubGenerator_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3936,7 +3936,7 @@ class StubGenerator: public StubCodeGenerator {
// ma: mask agnostic (don't care about those lanes)
// x0 is not written, we known the number of vector elements.

if (vset_sew == Assembler::e32 && MaxVectorSize == 16) {
if (vset_sew == Assembler::e64 && MaxVectorSize == 16) {
__ vsetivli(x0, 4, vset_sew, Assembler::m2, Assembler::ma, Assembler::ta);
} else {
__ vsetivli(x0, 4, vset_sew, Assembler::m1, Assembler::ma, Assembler::ta);
Expand Down

0 comments on commit eefcd26

Please sign in to comment.