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
6 changes: 3 additions & 3 deletions src/coreclr/jit/codegenriscv64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ void CodeGen::genSetRegToConst(regNumber targetReg, var_types targetType, GenTre
CORINFO_FIELD_HANDLE hnd = emit->emitFltOrDblConst(constValue, size);

// Compute the address of the FP constant and load the data.
emit->emitIns_R_C(size == EA_4BYTE ? INS_flw : INS_fld, size, targetReg, REG_NA, hnd, 0);
emit->emitIns_R_C(size == EA_4BYTE ? INS_flw : INS_fld, size, targetReg, REG_NA, hnd);
}
break;

Expand Down Expand Up @@ -2209,8 +2209,8 @@ void CodeGen::genJumpTable(GenTree* treeNode)
// Access to inline data is 'abstracted' by a special type of static member
// (produced by eeFindJitDataOffs) which the emitter recognizes as being a reference
// to constant data, not a real static field.
GetEmitter()->emitIns_R_C(INS_jal, emitActualTypeSize(TYP_I_IMPL), treeNode->GetRegNum(), REG_NA,
compiler->eeFindJitDataOffs(jmpTabBase), 0);
GetEmitter()->emitIns_R_C(INS_addi, emitActualTypeSize(TYP_I_IMPL), treeNode->GetRegNum(), REG_NA,
compiler->eeFindJitDataOffs(jmpTabBase));
genProduceReg(treeNode);
}

Expand Down
1 change: 1 addition & 0 deletions src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4476,6 +4476,7 @@ void emitter::emitRecomputeIGoffsets()
ig->igOffs = offs;
assert(IsCodeAligned(ig->igOffs));
offs += ig->igSize;
assert(offs >= ig->igOffs); // must not overflow
}

/* Set the total code size */
Expand Down
Loading
Loading