don't bypass wrt plt reg
This commit is contained in:
parent
bd00be4ace
commit
940f225405
11
isel.c
11
isel.c
@ -238,14 +238,13 @@ static void lower_inst(L* l, IrInst* inst)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(inst->call.expr->ty == IrInst_Val
|
|
||||||
&& inst->call.expr->val->ty == IrVal_Fn);
|
|
||||||
|
|
||||||
push_inst(l,
|
push_inst(l,
|
||||||
(X86Inst) {
|
(X86Inst) {
|
||||||
.ty = X86InstTy_CallWrtPlt,
|
.ty = X86InstTy_CallR8,
|
||||||
.op1 = { .ty = X86Operand_IdentRelWrtPlt,
|
.op1 = {
|
||||||
.ident = inst->call.expr->val->fn->ident },
|
.ty = X86Operand_VReg,
|
||||||
|
.reg = *expr_reg,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
push_inst(l,
|
push_inst(l,
|
||||||
(X86Inst) {
|
(X86Inst) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user