authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-15 19:40:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-16 10:27:40-07:00
logc2fa961b63cc32d9cecb8f33db465667c093f961
treedda695f5a79a7a6aa8ce71907b0de8aa6bdc0835
parent8a478b4e9e06ac0e0a59fc575222cf075aa64bc4

update docs


3 files changed, 5 insertions(+), 6 deletions(-)

doc/langref/Assembly Syntax Explained.zig +1-2
...@@ -53,8 +53,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {...@@ -53,8 +53,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {
53 // memory locations - not only the memory pointed to by a declared indirect53 // memory locations - not only the memory pointed to by a declared indirect
54 // output. In this example we list $rcx and $r11 because it is known the54 // output. In this example we list $rcx and $r11 because it is known the
55 // kernel syscall does not preserve these registers.55 // kernel syscall does not preserve these registers.
56 : "rcx", "r11"56 : .{ .rcx = true, .r11 = true });
57 );
58}57}
5958
60// syntax59// syntax
doc/langref/inline_assembly.zig+2-4
...@@ -15,8 +15,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {...@@ -15,8 +15,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {
15 : [ret] "={rax}" (-> usize),15 : [ret] "={rax}" (-> usize),
16 : [number] "{rax}" (number),16 : [number] "{rax}" (number),
17 [arg1] "{rdi}" (arg1),17 [arg1] "{rdi}" (arg1),
18 : "rcx", "r11"18 : .{ .rcx = true, .r11 = true });
19 );
20}19}
2120
22pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {21pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {
...@@ -26,8 +25,7 @@ pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {...@@ -26,8 +25,7 @@ pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {
26 [arg1] "{rdi}" (arg1),25 [arg1] "{rdi}" (arg1),
27 [arg2] "{rsi}" (arg2),26 [arg2] "{rsi}" (arg2),
28 [arg3] "{rdx}" (arg3),27 [arg3] "{rdx}" (arg3),
29 : "rcx", "r11"28 : .{ .rcx = true, .r11 = true });
30 );
31}29}
3230
33// exe=succeed31// exe=succeed
lib/docs/wasm/Walk.zig+2
...@@ -787,6 +787,8 @@ fn expr(w: *Walk, scope: *Scope, parent_decl: Decl.Index, node: Ast.Node.Index)...@@ -787,6 +787,8 @@ fn expr(w: *Walk, scope: *Scope, parent_decl: Decl.Index, node: Ast.Node.Index)
787 try expr(w, scope, parent_decl, full.ast.template);787 try expr(w, scope, parent_decl, full.ast.template);
788 },788 },
789789
790 .asm_legacy => {},
791
790 .builtin_call_two,792 .builtin_call_two,
791 .builtin_call_two_comma,793 .builtin_call_two_comma,
792 .builtin_call,794 .builtin_call,