未验证 提交 3d2702f6 编写于 作者: Q Qiao Pengcheng 提交者: GitHub

[LoongArch64] Fixed the compiling error for #69041. (#70544)

上级 077526e9
......@@ -1655,6 +1655,18 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*/
//------------------------------------------------------------------------
// inst_JMP: Generate a jump instruction.
//
void CodeGen::inst_JMP(emitJumpKind jmp, BasicBlock* tgtBlock)
{
#if !FEATURE_FIXED_OUT_ARGS
assert((tgtBlock->bbTgtStkDepth * sizeof(int) == genStackLevel) || isFramePointerUsed());
#endif // !FEATURE_FIXED_OUT_ARGS
GetEmitter()->emitIns_J(emitter::emitJumpKindToIns(jmp), tgtBlock);
}
BasicBlock* CodeGen::genCallFinally(BasicBlock* block)
{
// Generate a call to the finally, like this:
......
......@@ -3912,7 +3912,7 @@ static const char* const RegNames[] =
void emitter::emitDisInsName(code_t code, const BYTE* addr, instrDesc* id)
{
const BYTE* insAdr = addr;
const BYTE* insAdr = addr - writeableOffset;
const char* const CFregName[] = {"fcc0", "fcc1", "fcc2", "fcc3", "fcc4", "fcc5", "fcc6", "fcc7"};
unsigned int opcode = (code >> 26) & 0x3f;
......
......@@ -133,6 +133,12 @@ inline static bool isFloatReg(regNumber reg)
return (reg >= REG_FP_FIRST && reg <= REG_FP_LAST);
}
/************************************************************************/
/* Output target-independent instructions */
/************************************************************************/
void emitIns_J(instruction ins, BasicBlock* dst, int instrCount = 0);
/************************************************************************/
/* The public entry points to output instructions */
/************************************************************************/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册