diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-18 21:41:33 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-19 20:21:00 +0100 |
| commit | df6c0067b26ca1b6798612631b26b167e9fe287a (patch) | |
| tree | d91929d74928788a0db8f0626b9772ea3a5edccb /test/behavior/align.zig | |
| parent | 7c6981e0c0f2412c49457a900e5a6a4db96be2e8 (diff) | |
| download | zig-df6c0067b26ca1b6798612631b26b167e9fe287a.tar.gz zig-df6c0067b26ca1b6798612631b26b167e9fe287a.zip | |
stage2: fix passing arguments on the stack
* push the arguments in reverse order
* add logic for pushing args of any abi size to stack - very similar to
`genSetStack` however, uses `.rsp` as the base register
* increment and decrement `.rsp` if we called a function with args on
the stack in `airCall`
* add logic for recovering args from the caller's stack in the callee
Diffstat (limited to 'test/behavior/align.zig')
| -rw-r--r-- | test/behavior/align.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/behavior/align.zig b/test/behavior/align.zig index fe57c79353..dfa8d895c5 100644 --- a/test/behavior/align.zig +++ b/test/behavior/align.zig @@ -119,7 +119,7 @@ fn fnWithAlignedStack() i32 { } test "implicitly decreasing slice alignment" { - if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; const a: u32 align(4) = 3; const b: u32 align(8) = 4; @@ -130,7 +130,7 @@ fn addUnalignedSlice(a: []align(1) const u32, b: []align(1) const u32) u32 { } test "specifying alignment allows pointer cast" { - if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; try testBytesAlign(0x33); } |
