authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-04 21:07:24-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-05 00:03:59-07:00
logba1e53f116b27f97828d495af2ea5b87fd9632cb
tree4b0f919ec54702e6938c082a40750b369cdec350
parent8248fdbbdb88cc861c3d02a26ec4a214df3f9a1e

avoid triggering LLVM bug on MIPS

See #13782

2 files changed, 9 insertions(+), 2 deletions(-)

lib/std/http/Client.zig+7
......@@ -551,5 +551,12 @@ pub fn request(client: *Client, url: Url, headers: Request.Headers, options: Req
551551}
552552
553553test {
554 const builtin = @import("builtin");
555 const native_endian = comptime builtin.cpu.arch.endian();
556 if (builtin.zig_backend == .stage2_llvm and native_endian == .Big) {
557 // https://github.com/ziglang/zig/issues/13782
558 return error.SkipZigTest;
559 }
560
554561 _ = Request;
555562}
test/behavior/bitcast.zig+2-2
......@@ -109,7 +109,7 @@ fn testBitCastuXToBytes(comptime N: usize) !void {
109109 const bytes = std.mem.asBytes(&x);
110110
111111 const byte_count = (N + 7) / 8;
112 switch (builtin.cpu.arch.endian()) {
112 switch (native_endian) {
113113 .Little => {
114114 var byte_i = 0;
115115 while (byte_i < (byte_count - 1)) : (byte_i += 1) {
......@@ -333,7 +333,7 @@ test "comptime @bitCast packed struct to int and back" {
333333 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
334334 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
335335
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) {
337337 // https://github.com/ziglang/zig/issues/13782
338338 return error.SkipZigTest;
339339 }