aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-19 18:44:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-19 18:44:59 -0700
commit4630e3891c7c833d8a8f42e3755099b478dce3f3 (patch)
tree705e6542c481635149a8e1489964a074483a501f /src/codegen
parenta136c093bf7a48398e36a73e91213f93a4efc503 (diff)
downloadzig-4630e3891c7c833d8a8f42e3755099b478dce3f3.tar.gz
zig-4630e3891c7c833d8a8f42e3755099b478dce3f3.zip
AstGen: implement inline asm output
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/c.zig6
1 files changed, 3 insertions, 3 deletions
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(": ");