Skip to content

Commit a011c43

Browse files
committed
[RISC-V] Fixed mov pseudoinstruction
1 parent a9964cb commit a011c43

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/coreclr/jit/codegenriscv64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ void CodeGen::genCodeForStoreLclVar(GenTreeLclVar* lclNode)
18541854
assert(data->AsIntCon()->IconValue() == 0);
18551855
emitAttr attr = emitActualTypeSize(targetType);
18561856
// need to load the address from thread pointer reg
1857-
emit->emitIns_R_R(INS_mov, attr, targetReg, REG_TP);
1857+
emit->emitIns_R_R(INS_mv, attr, targetReg, REG_TP);
18581858
}
18591859
else
18601860
{

src/coreclr/jit/emitriscv64.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ bool emitter::emitInsWritesToLclVarStackLoc(instrDesc* id)
141141
inline bool emitter::emitInsMayWriteToGCReg(instruction ins)
142142
{
143143
assert(ins != INS_invalid);
144-
return (ins <= INS_remuw) && (ins >= INS_mov) && !(ins >= INS_jal && ins <= INS_bgeu && ins != INS_jalr) &&
144+
return (ins <= INS_remuw) && (ins >= INS_mv) && !(ins >= INS_jal && ins <= INS_bgeu && ins != INS_jalr) &&
145145
(CodeGenInterface::instInfo[ins] & ST) == 0
146146
? true
147147
: false;
@@ -525,7 +525,7 @@ void emitter::emitIns_Mov(
525525
{
526526
if (!canSkip || (dstReg != srcReg))
527527
{
528-
if ((EA_4BYTE == attr) && (INS_mov == ins))
528+
if ((EA_4BYTE == attr) && (INS_mv == ins))
529529
{
530530
assert(isGeneralRegisterOrR0(srcReg));
531531
assert(isGeneralRegisterOrR0(dstReg));
@@ -588,7 +588,7 @@ void emitter::emitIns_R_R(
588588
{
589589
code_t code = emitInsCode(ins);
590590

591-
if (INS_mov == ins)
591+
if (INS_mv == ins)
592592
{
593593
assert(isGeneralRegisterOrR0(reg1));
594594
assert(isGeneralRegisterOrR0(reg2));
@@ -2415,7 +2415,7 @@ static constexpr unsigned kInstructionFunct2Mask = 0x06000000;
24152415
{
24162416
switch (ins)
24172417
{
2418-
case INS_mov:
2418+
case INS_mv:
24192419
case INS_jalr:
24202420
case INS_lb:
24212421
case INS_lh:
@@ -4842,7 +4842,7 @@ regNumber emitter::emitInsTernary(instruction ins, emitAttr attr, GenTree* dst,
48424842

48434843
if (needCheckOv)
48444844
{
4845-
emitIns_R_R(INS_mov, attr, tempReg, nonIntReg->GetRegNum());
4845+
emitIns_R_R(INS_mv, attr, tempReg, nonIntReg->GetRegNum());
48464846
}
48474847

48484848
emitIns_R_R_I(ins, attr, dstReg, nonIntReg->GetRegNum(), imm);
@@ -5193,7 +5193,7 @@ bool emitter::IsMovInstruction(instruction ins)
51935193
{
51945194
switch (ins)
51955195
{
5196-
case INS_mov:
5196+
case INS_mv:
51975197
case INS_fsgnj_s:
51985198
case INS_fsgnj_d:
51995199
{

src/coreclr/jit/instrsriscv64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ INST(invalid, "INVALID", 0, BAD_CODE)
3535
INST(nop, "nop", 0, 0x00000013)
3636

3737
//// R_R
38-
INST(mov, "mov", 0, 0x00000013)
38+
INST(mv, "mv", 0, 0x00000013)
3939

4040
////R_I
4141
INST(lui, "lui", 0, 0x00000037)

0 commit comments

Comments
 (0)