aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-03-27 12:44:10 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2025-04-10 06:04:09 -0400
commit06eebafadd471ee287bfd4436b0c3ffcae3136c8 (patch)
tree420252db43bf2b9b0a7ef5248009eb9d867c42f5 /src
parent7a2963efabfed7cf7e356b698a425cd30aa5620a (diff)
downloadzig-06eebafadd471ee287bfd4436b0c3ffcae3136c8.tar.gz
zig-06eebafadd471ee287bfd4436b0c3ffcae3136c8.zip
AstGen: redistribute inline asm limits
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index ad800c29a6..5dbf26f375 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -16661,9 +16661,9 @@ fn zirAsm(
const extra = sema.code.extraData(Zir.Inst.Asm, extended.operand);
const src = block.nodeOffset(extra.data.src_node);
const ret_ty_src = block.src(.{ .node_offset_asm_ret_ty = extra.data.src_node });
- const outputs_len: u5 = @truncate(extended.small);
- const inputs_len: u5 = @truncate(extended.small >> 5);
- const clobbers_len: u5 = @truncate(extended.small >> 10);
+ const outputs_len: u4 = @truncate(extended.small);
+ const inputs_len: u5 = @truncate(extended.small >> 4);
+ const clobbers_len: u6 = @truncate(extended.small >> 9);
const is_volatile = @as(u1, @truncate(extended.small >> 15)) != 0;
const is_global_assembly = sema.func_index == .none;
const zir_tags = sema.code.instructions.items(.tag);