authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2022-12-23 19:00:20-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-24 02:23:05-05:00
logfc0789f8e7a0fbb18a90a4c34da6409a27c51b20
tree702abdf1b2b7a5150ff87017af4274c7d6a647dd
parentc9e3524d0b12e11488519bb377e7dcf60047963a

behavior: disable tests that trigger an llvm 15 bug and assertion

``` LLVM Emit Object... zig: llvm/include/llvm/ADT/APInt.h:840: void llvm::APInt::lshrInPlace(unsigned int): Assertion `ShiftAmt <= BitWidth && "Invalid shift amount"' failed. Aborted ``` Tracked by #13782

2 files changed, 11 insertions(+), 0 deletions(-)

test/behavior/bitcast.zig+5
......@@ -334,6 +334,11 @@ test "comptime @bitCast packed struct to int and back" {
334334 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
335335 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
336336
337 if (comptime builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) {
338 // https://github.com/ziglang/zig/issues/13782
339 return error.SkipZigTest;
340 }
341
337342 const S = packed struct {
338343 void: void = {},
339344 uint: u8 = 13,
test/behavior/bugs/12169.zig+6
......@@ -7,6 +7,12 @@ test {
77 if (builtin.zig_backend == .stage2_x86) return error.SkipZigTest; // TODO
88 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
99 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
10
11 if (comptime builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) {
12 // https://github.com/ziglang/zig/issues/13782
13 return error.SkipZigTest;
14 }
15
1016 const a = @Vector(2, bool){ true, true };
1117 const b = @Vector(1, bool){true};
1218 try std.testing.expect(@reduce(.And, a));