authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2022-12-13 02:20:17-05:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-01 16:44:28-05:00
logb86a8b4a5b862ce5a6a1c7ca5a755b90c16693db
tree56d47c962dd28ffd5799b4322cfac39b3915834a
parent3d4ff4fdda9ec2432f0496fb3e6fa6789d882140

cbe: airNot emits zig_not_ calls for integers


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

src/codegen/c.zig+1-1
...@@ -3872,12 +3872,12 @@ fn airNot(f: *Function, inst: Air.Inst.Index) !CValue {...@@ -3872,12 +3872,12 @@ fn airNot(f: *Function, inst: Air.Inst.Index) !CValue {
38723872
3873 const writer = f.object.writer();3873 const writer = f.object.writer();
3874 const local = try f.allocLocal(inst, inst_ty);3874 const local = try f.allocLocal(inst, inst_ty);
3875
3875 try f.writeCValue(writer, local, .Other);3876 try f.writeCValue(writer, local, .Other);
3876 try writer.writeAll(" = ");3877 try writer.writeAll(" = ");
3877 try writer.writeByte('!');3878 try writer.writeByte('!');
3878 try f.writeCValue(writer, op, .Other);3879 try f.writeCValue(writer, op, .Other);
3879 try writer.writeAll(";\n");3880 try writer.writeAll(";\n");
3880
3881 return local;3881 return local;
3882}3882}
38833883