Skip to content

Commit 14fb8d6

Browse files
authored
Fix the encoding for sve_mov (#114244)
My #113860 exposed a bug in encoding of sve_mov, where we were wrongly skipping the encoding the Zm field and giving wrong instruction. Fixes: #113939
1 parent cdb3549 commit 14fb8d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/coreclr/jit/emitarm64sve.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10394,6 +10394,10 @@ BYTE* emitter::emitOutput_InstrSve(BYTE* dst, instrDesc* id)
1039410394
{
1039510395
code |= insEncodeReg_V<20, 16>(id->idReg3()); // mmmmm
1039610396
}
10397+
else
10398+
{
10399+
code |= insEncodeReg_V<20, 16>(id->idReg2()); // mmmmm
10400+
}
1039710401
dst += emitOutput_Instr(dst, code);
1039810402
break;
1039910403

0 commit comments

Comments
 (0)