Skip to content

Commit

Permalink
ARM64-SVE: Use emitIns_R_R_Imm instead of emitIns_R_R_I to handle lar…
Browse files Browse the repository at this point in the history
…ge immediates (dotnet#105958)
  • Loading branch information
amanasifkhalid authored Aug 5, 2024
1 parent 77fb038 commit 684998f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7975,7 +7975,7 @@ void emitter::emitIns_R_S(instruction ins, emitAttr attr, regNumber reg1, int va
regNumber rsvdReg = codeGen->rsGetRsvdReg();

// add rsvd, fp, #imm
emitIns_R_R_I(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
emitIns_R_R_Imm(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
// str p0, [rsvd, #0, mul vl]
emitIns_R_R_I(ins, attr, reg1, rsvdReg, 0);

Expand Down Expand Up @@ -8246,7 +8246,7 @@ void emitter::emitIns_S_R(instruction ins, emitAttr attr, regNumber reg1, int va
regNumber rsvdReg = codeGen->rsGetRsvdReg();

// add rsvd, fp, #imm
emitIns_R_R_I(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
emitIns_R_R_Imm(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
// str p0, [rsvd, #0, mul vl]
emitIns_R_R_I(ins, attr, reg1, rsvdReg, 0);

Expand Down

0 comments on commit 684998f

Please sign in to comment.