Skip to content

Commit c0ec264

Browse files
samy-00007alexrp
authored andcommitted
inline assembly: implement gcc's "%=" syntax
1 parent a843be4 commit c0ec264

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/codegen/llvm.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7453,6 +7453,10 @@ pub const FuncGen = struct {
74537453
name_start = i + 1;
74547454
state = .input;
74557455
},
7456+
'=' => {
7457+
try rendered_template.appendSlice("${:uid}");
7458+
state = .start;
7459+
},
74567460
else => {
74577461
try rendered_template.append('%');
74587462
try rendered_template.append(byte);

0 commit comments

Comments
 (0)