From 4630e3891c7c833d8a8f42e3755099b478dce3f3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 19 Apr 2021 18:44:59 -0700 Subject: AstGen: implement inline asm output --- src/codegen/c.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/codegen') diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 0fdf5cb01b..441449707a 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -1036,11 +1036,11 @@ fn genAsm(o: *Object, as: *Inst.Assembly) !CValue { } const volatile_string: []const u8 = if (as.is_volatile) "volatile " else ""; try writer.print("__asm {s}(\"{s}\"", .{ volatile_string, as.asm_source }); - if (as.output) |_| { - return o.dg.fail(.{ .node_offset = 0 }, "TODO inline asm output", .{}); + if (as.output_constraint) |_| { + return o.dg.fail(.{ .node_offset = 0 }, "TODO: CBE inline asm output", .{}); } if (as.inputs.len > 0) { - if (as.output == null) { + if (as.output_constraint == null) { try writer.writeAll(" :"); } try writer.writeAll(": "); -- cgit v1.2.3