| ... | @@ -442,7 +442,7 @@ fn asmJccReloc(self: *Self, target: Mir.Inst.Index, cc: bits.Condition) !Mir.Ins | ... | @@ -442,7 +442,7 @@ fn asmJccReloc(self: *Self, target: Mir.Inst.Index, cc: bits.Condition) !Mir.Ins |
| 442 | }); | 442 | }); |
| 443 | } | 443 | } |
| 444 | | 444 | |
| 445 | fn asmNone(self: *Self, tag: Mir.Inst.Tag) !void { | 445 | fn asmOpOnly(self: *Self, tag: Mir.Inst.Tag) !void { |
| 446 | _ = try self.addInst(.{ | 446 | _ = try self.addInst(.{ |
| 447 | .tag = tag, | 447 | .tag = tag, |
| 448 | .ops = .none, | 448 | .ops = .none, |
| ... | @@ -709,7 +709,7 @@ fn gen(self: *Self) InnerError!void { | ... | @@ -709,7 +709,7 @@ fn gen(self: *Self) InnerError!void { |
| 709 | }); | 709 | }); |
| 710 | | 710 | |
| 711 | try self.asmRegister(.pop, .rbp); | 711 | try self.asmRegister(.pop, .rbp); |
| 712 | try self.asmNone(.ret); | 712 | try self.asmOpOnly(.ret); |
| 713 | | 713 | |
| 714 | // Adjust the stack | 714 | // Adjust the stack |
| 715 | if (self.max_end_stack > math.maxInt(i32)) { | 715 | if (self.max_end_stack > math.maxInt(i32)) { |
| ... | @@ -1856,7 +1856,7 @@ fn genIntMulDivOpMir( | ... | @@ -1856,7 +1856,7 @@ fn genIntMulDivOpMir( |
| 1856 | } | 1856 | } |
| 1857 | | 1857 | |
| 1858 | switch (signedness) { | 1858 | switch (signedness) { |
| 1859 | .signed => try self.asmNone(.cqo), | 1859 | .signed => try self.asmOpOnly(.cqo), |
| 1860 | .unsigned => try self.asmRegisterRegister(.xor, .rdx, .rdx), | 1860 | .unsigned => try self.asmRegisterRegister(.xor, .rdx, .rdx), |
| 1861 | } | 1861 | } |
| 1862 | | 1862 | |
| ... | @@ -3901,12 +3901,12 @@ fn genVarDbgInfo( | ... | @@ -3901,12 +3901,12 @@ fn genVarDbgInfo( |
| 3901 | } | 3901 | } |
| 3902 | | 3902 | |
| 3903 | fn airTrap(self: *Self) !void { | 3903 | fn airTrap(self: *Self) !void { |
| 3904 | try self.asmNone(.ud2); | 3904 | try self.asmOpOnly(.ud2); |
| 3905 | return self.finishAirBookkeeping(); | 3905 | return self.finishAirBookkeeping(); |
| 3906 | } | 3906 | } |
| 3907 | | 3907 | |
| 3908 | fn airBreakpoint(self: *Self) !void { | 3908 | fn airBreakpoint(self: *Self) !void { |
| 3909 | try self.asmNone(.int3); | 3909 | try self.asmOpOnly(.int3); |
| 3910 | return self.finishAirBookkeeping(); | 3910 | return self.finishAirBookkeeping(); |
| 3911 | } | 3911 | } |
| 3912 | | 3912 | |
| ... | @@ -5109,7 +5109,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void { | ... | @@ -5109,7 +5109,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void { |
| 5109 | var iter = std.mem.tokenize(u8, asm_source, "\n\r"); | 5109 | var iter = std.mem.tokenize(u8, asm_source, "\n\r"); |
| 5110 | while (iter.next()) |ins| { | 5110 | while (iter.next()) |ins| { |
| 5111 | if (mem.eql(u8, ins, "syscall")) { | 5111 | if (mem.eql(u8, ins, "syscall")) { |
| 5112 | try self.asmNone(.syscall); | 5112 | try self.asmOpOnly(.syscall); |
| 5113 | } else if (mem.indexOf(u8, ins, "push")) |_| { | 5113 | } else if (mem.indexOf(u8, ins, "push")) |_| { |
| 5114 | const arg = ins[4..]; | 5114 | const arg = ins[4..]; |
| 5115 | if (mem.indexOf(u8, arg, "$")) |l| { | 5115 | if (mem.indexOf(u8, arg, "$")) |l| { |