| ... | @@ -2189,12 +2189,12 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { | ... | @@ -2189,12 +2189,12 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { |
| 2189 | if (inst.base.isUnused()) | 2189 | if (inst.base.isUnused()) |
| 2190 | return MCValue.dead; | 2190 | return MCValue.dead; |
| 2191 | switch (arch) { | 2191 | switch (arch) { |
| 2192 | .x86_64 => if (inst.base.tag == .booland) { | 2192 | .x86_64 => switch (inst.base.tag) { |
| 2193 | // lhs AND rhs | 2193 | // lhs AND rhs |
| 2194 | return try self.genX8664BinMath(&inst.base, inst.lhs, inst.rhs, 4, 0x20); | 2194 | .booland => return try self.genX8664BinMath(&inst.base, inst.lhs, inst.rhs, 4, 0x20), |
| 2195 | } else { | | |
| 2196 | // lhs OR rhs | 2195 | // lhs OR rhs |
| 2197 | return try self.genX8664BinMath(&inst.base, inst.lhs, inst.rhs, 1, 0x08); | 2196 | .boolor => return try self.genX8664BinMath(&inst.base, inst.lhs, inst.rhs, 1, 0x08), |
| | 2197 | else => unreachable, |
| 2198 | }, | 2198 | }, |
| 2199 | else => return self.fail(inst.base.src, "TODO implement boolean operations for {}", .{self.target.cpu.arch}), | 2199 | else => return self.fail(inst.base.src, "TODO implement boolean operations for {}", .{self.target.cpu.arch}), |
| 2200 | } | 2200 | } |