diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-13 18:43:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-13 18:43:43 -0700 |
| commit | b0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c (patch) | |
| tree | 14dbc30206ceed6282ee010685de8da1ede4167d /test | |
| parent | df7d6d263e4ad6adb302856235641ae9ceb142b6 (diff) | |
| download | zig-b0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c.tar.gz zig-b0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c.zip | |
stage2: remove use of `builtin.stage2_arch` workaround
The LLVM backend no longer needs this hack! However, the other backends
still do. So there are still some traces of this workaround in use for now.
Diffstat (limited to 'test')
| -rw-r--r-- | test/behavior/atomics.zig | 2 | ||||
| -rw-r--r-- | test/behavior/widening.zig | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/behavior/atomics.zig b/test/behavior/atomics.zig index 37bc9930a7..0643b62fe3 100644 --- a/test/behavior/atomics.zig +++ b/test/behavior/atomics.zig @@ -89,7 +89,7 @@ test "128-bit cmpxchg" { fn test_u128_cmpxchg() !void { if (builtin.zig_is_stage2) { - if (builtin.stage2_arch != .x86_64) return error.SkipZigTest; + if (builtin.cpu.arch != .x86_64) return error.SkipZigTest; if (!builtin.stage2_x86_cx16) return error.SkipZigTest; } else { if (builtin.cpu.arch != .x86_64) return error.SkipZigTest; diff --git a/test/behavior/widening.zig b/test/behavior/widening.zig index 21fe731ca5..3074e96e61 100644 --- a/test/behavior/widening.zig +++ b/test/behavior/widening.zig @@ -30,8 +30,8 @@ test "float widening" { test "float widening f16 to f128" { // TODO https://github.com/ziglang/zig/issues/3282 - if (@import("builtin").stage2_arch == .aarch64) return error.SkipZigTest; - if (@import("builtin").stage2_arch == .powerpc64le) return error.SkipZigTest; + if (@import("builtin").cpu.arch == .aarch64) return error.SkipZigTest; + if (@import("builtin").cpu.arch == .powerpc64le) return error.SkipZigTest; var x: f16 = 12.34; var y: f128 = x; |
