| ... | ... | @@ -109,7 +109,7 @@ fn testBitCastuXToBytes(comptime N: usize) !void { |
| 109 | 109 | const bytes = std.mem.asBytes(&x); |
| 110 | 110 | |
| 111 | 111 | const byte_count = (N + 7) / 8; |
| 112 | | switch (builtin.cpu.arch.endian()) { |
| 112 | switch (native_endian) { |
| 113 | 113 | .Little => { |
| 114 | 114 | var byte_i = 0; |
| 115 | 115 | while (byte_i < (byte_count - 1)) : (byte_i += 1) { |
| ... | ... | @@ -333,7 +333,7 @@ test "comptime @bitCast packed struct to int and back" { |
| 333 | 333 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 334 | 334 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 335 | 335 | |
| 336 | | if (comptime builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) { |
| 336 | if (builtin.zig_backend == .stage2_llvm and native_endian == .Big) { |
| 337 | 337 | // https://github.com/ziglang/zig/issues/13782 |
| 338 | 338 | return error.SkipZigTest; |
| 339 | 339 | } |