Skip to content

Commit

Permalink
update the location of assert for REG_ZR check (#112294)
Browse files Browse the repository at this point in the history
* update the location of assert for REG_ZR check

* encodeZRtoSP() in caller
  • Loading branch information
kunalspathak authored Feb 8, 2025
1 parent 826d931 commit 497236a
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 @@ -8012,7 +8012,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_Imm(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
emitIns_R_R_Imm(INS_add, EA_8BYTE, rsvdReg, encodingZRtoSP(reg2), imm);
// str p0, [rsvd, #0, mul vl]
emitIns_R_R_I(ins, attr, reg1, rsvdReg, 0);

Expand Down Expand Up @@ -8285,7 +8285,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_Imm(INS_add, EA_8BYTE, rsvdReg, reg2, imm);
emitIns_R_R_Imm(INS_add, EA_8BYTE, rsvdReg, encodingZRtoSP(reg2), imm);
// str p0, [rsvd, #0, mul vl]
emitIns_R_R_I(ins, attr, reg1, rsvdReg, 0);

Expand Down

0 comments on commit 497236a

Please sign in to comment.