| author | |
| committer | |
| log | 3c69810fe6660fa3115d345bb60b3f811ac7c8c0 |
| tree | 4a4c55670c05135cc28b2d0509245588aee05207 |
| parent | f6f98a621f70a10078fe3de688fe4f8c2e027a30 |
2 files changed, 2 insertions(+), 2 deletions(-)
src/arch/x86_64/CodeGen.zig+2-1| ... | @@ -1154,7 +1154,8 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void { | ... | @@ -1154,7 +1154,8 @@ fn airNot(self: *Self, inst: Air.Inst.Index) !void { |
| 1154 | }; | 1154 | }; |
| 1155 | defer if (dst_mcv_lock) |lock| self.register_manager.unlockReg(lock); | 1155 | defer if (dst_mcv_lock) |lock| self.register_manager.unlockReg(lock); |
| 1156 | 1156 | ||
| 1157 | try self.genBinOpMir(.xor, operand_ty, dst_mcv, .{ .immediate = 1 }); | 1157 | const mask = ~@as(u64, 0); |
| 1158 | try self.genBinOpMir(.xor, operand_ty, dst_mcv, .{ .immediate = mask }); | ||
| 1158 | 1159 | ||
| 1159 | break :result dst_mcv; | 1160 | break :result dst_mcv; |
| 1160 | }; | 1161 | }; |
test/behavior/math.zig-1| ... | @@ -362,7 +362,6 @@ fn comptimeAdd(comptime a: comptime_int, comptime b: comptime_int) comptime_int | ... | @@ -362,7 +362,6 @@ fn comptimeAdd(comptime a: comptime_int, comptime b: comptime_int) comptime_int |
| 362 | 362 | ||
| 363 | test "binary not" { | 363 | test "binary not" { |
| 364 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | 364 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 365 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | ||
| 366 | 365 | ||
| 367 | try expect(comptime x: { | 366 | try expect(comptime x: { |
| 368 | break :x ~@as(u16, 0b1010101010101010) == 0b0101010101010101; | 367 | break :x ~@as(u16, 0b1010101010101010) == 0b0101010101010101; |