Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/coreclr/jit/emitarm64sve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,14 @@ void emitter::emitInsSve_R_R(instruction ins,
// Thus, MOV is the preferred disassembly.
ins = INS_sve_mov;
break;

case INS_sve_ldr:
case INS_sve_str:
{
// We might come here through emitIns_R_R() to emit "ldr Zx, [Xn]" and
// in the case, just generate the ldr variant, where offset is zero.
emitInsSve_R_R_I(ins, attr, reg1, reg2, 0, opt, sopt);
return;
}
default:
unreached();
break;
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/jit/hwintrinsiccodegenarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2561,8 +2561,8 @@ void CodeGen::genHWIntrinsic(GenTreeHWIntrinsic* node)
assert(varTypeIsFloating(node->gtType) || varTypeIsSIMD(node->gtType));
assert((targetReg == op2Reg) || (targetReg != op1Reg));
assert((targetReg == op2Reg) || (targetReg != op3Reg));
GetEmitter()->emitIns_Mov(INS_mov, emitTypeSize(node), targetReg, op2Reg,
/* canSkip */ true);

GetEmitter()->emitIns_Mov(INS_sve_mov, EA_SCALABLE, targetReg, op2Reg, /* canSkip */ true, opt);
GetEmitter()->emitInsSve_R_R_R(ins, EA_SCALABLE, targetReg, op1Reg, op3Reg, opt,
INS_SCALABLE_OPTS_WITH_SIMD_SCALAR);
break;
Expand Down