| author | |
| committer | |
| log | c2fa961b63cc32d9cecb8f33db465667c093f961 |
| tree | dda695f5a79a7a6aa8ce71907b0de8aa6bdc0835 |
| parent | 8a478b4e9e06ac0e0a59fc575222cf075aa64bc4 |
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 | 53 | // memory locations - not only the memory pointed to by a declared indirect |
| 54 | 54 | // output. In this example we list $rcx and $r11 because it is known the |
| 55 | 55 | // kernel syscall does not preserve these registers. |
| 56 | : "rcx", "r11" | |
| 57 | ); | |
| 56 | : .{ .rcx = true, .r11 = true }); | |
| 58 | 57 | } |
| 59 | 58 | |
| 60 | 59 | // syntax |
doc/langref/inline_assembly.zig+2-4| ... | ... | @@ -15,8 +15,7 @@ pub fn syscall1(number: usize, arg1: usize) usize { |
| 15 | 15 | : [ret] "={rax}" (-> usize), |
| 16 | 16 | : [number] "{rax}" (number), |
| 17 | 17 | [arg1] "{rdi}" (arg1), |
| 18 | : "rcx", "r11" | |
| 19 | ); | |
| 18 | : .{ .rcx = true, .r11 = true }); | |
| 20 | 19 | } |
| 21 | 20 | |
| 22 | 21 | 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 | 25 | [arg1] "{rdi}" (arg1), |
| 27 | 26 | [arg2] "{rsi}" (arg2), |
| 28 | 27 | [arg3] "{rdx}" (arg3), |
| 29 | : "rcx", "r11" | |
| 30 | ); | |
| 28 | : .{ .rcx = true, .r11 = true }); | |
| 31 | 29 | } |
| 32 | 30 | |
| 33 | 31 | // 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 | 787 | try expr(w, scope, parent_decl, full.ast.template); |
| 788 | 788 | }, |
| 789 | 789 | |
| 790 | .asm_legacy => {}, | |
| 791 | ||
| 790 | 792 | .builtin_call_two, |
| 791 | 793 | .builtin_call_two_comma, |
| 792 | 794 | .builtin_call, |