authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-02-08 23:48:42+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-02-08 23:48:42+01:00
logf1d2141849e0ae01910bef52cada0de0d0322e72
tree20b3337dc6bcd2695fb00d8e92f0c8389f1739ed
parente42b5e76bacaf221f3da3f4ffe769f603a51cf44

stage2: handle direct and got load for stack args


1 files changed, 2 insertions(+), 0 deletions(-)

src/arch/x86_64/CodeGen.zig+2
......@@ -3482,6 +3482,8 @@ fn genSetStackArg(self: *Self, ty: Type, stack_offset: i32, mcv: MCValue) InnerE
34823482 },
34833483 .memory,
34843484 .embedded_in_code,
3485 .direct_load,
3486 .got_load,
34853487 => {
34863488 if (abi_size <= 8) {
34873489 const reg = try self.copyToTmpRegister(ty, mcv);