authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-06-19 10:38:50+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-06-24 21:19:33+07:00
log837cd0d8af294405316dc6757ce3d0e105c86218
tree57bd563eaacdb44ce7f532144eaaeeca807276fa
parentbe6718b79619c4c3d8ecbebe8be93113655d0d5b

stage2: sparc64: Fix airNot comments/error messages


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

src/arch/sparc64/CodeGen.zig+1-2
...@@ -1581,7 +1581,6 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void {...@@ -1581,7 +1581,6 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void {
1581 else => {1581 else => {
1582 switch (operand_ty.zigTypeTag()) {1582 switch (operand_ty.zigTypeTag()) {
1583 .Bool => {1583 .Bool => {
1584 // TODO convert this to mvn + and
1585 const op_reg = switch (operand) {1584 const op_reg = switch (operand) {
1586 .register => |r| r,1585 .register => |r| r,
1587 else => try self.copyToTmpRegister(operand_ty, operand),1586 else => try self.copyToTmpRegister(operand_ty, operand),
...@@ -1647,7 +1646,7 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void {...@@ -1647,7 +1646,7 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void {
16471646
1648 break :result MCValue{ .register = dest_reg };1647 break :result MCValue{ .register = dest_reg };
1649 } else {1648 } else {
1650 return self.fail("TODO AArch64 not on integers > u64/i64", .{});1649 return self.fail("TODO sparc64 not on integers > u64/i64", .{});
1651 }1650 }
1652 },1651 },
1653 else => unreachable,1652 else => unreachable,