don't bypass wrt plt reg

This commit is contained in:
sfja 2026-11-16 22:29:57 +01:00
parent bd00be4ace
commit 940f225405

11
isel.c
View File

@ -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) {