| author | |
| committer | |
| log | 5ca1753ff175379c7847ae82243774c79a75879c |
| tree | ed93715fc6010c918baf8973e846d076e532b755 |
| parent | 3f1cfcbea873263c480696288d8cacd288a9c919 |
This reverts commit 3370d58956ecc744a004dff47b0437473f0ef7da.
This commit was done with an LLVM build that did not have assertions
enabled. There are LLVM assertions being triggered due to this commit.
Reopens #10627
Reopens #12013
Reopens #120276 files changed, 48 insertions(+), 0 deletions(-)
lib/std/fmt/parse_float.zig+5| ... | ... | @@ -70,6 +70,11 @@ test "fmt.parseFloat" { |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | test "fmt.parseFloat nan and inf" { |
| 73 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 74 | // https://github.com/ziglang/zig/issues/12027 | |
| 75 | return error.SkipZigTest; | |
| 76 | } | |
| 77 | ||
| 73 | 78 | inline for ([_]type{ f16, f32, f64, f128 }) |T| { |
| 74 | 79 | const Z = std.meta.Int(.unsigned, @typeInfo(T).Float.bits); |
| 75 | 80 |
lib/std/math.zig+16| ... | ... | @@ -530,6 +530,10 @@ pub fn shl(comptime T: type, a: T, shift_amt: anytype) T { |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | test "shl" { |
| 533 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 534 | // https://github.com/ziglang/zig/issues/12012 | |
| 535 | return error.SkipZigTest; | |
| 536 | } | |
| 533 | 537 | try testing.expect(shl(u8, 0b11111111, @as(usize, 3)) == 0b11111000); |
| 534 | 538 | try testing.expect(shl(u8, 0b11111111, @as(usize, 8)) == 0); |
| 535 | 539 | try testing.expect(shl(u8, 0b11111111, @as(usize, 9)) == 0); |
| ... | ... | @@ -570,6 +574,10 @@ pub fn shr(comptime T: type, a: T, shift_amt: anytype) T { |
| 570 | 574 | } |
| 571 | 575 | |
| 572 | 576 | test "shr" { |
| 577 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 578 | // https://github.com/ziglang/zig/issues/12012 | |
| 579 | return error.SkipZigTest; | |
| 580 | } | |
| 573 | 581 | try testing.expect(shr(u8, 0b11111111, @as(usize, 3)) == 0b00011111); |
| 574 | 582 | try testing.expect(shr(u8, 0b11111111, @as(usize, 8)) == 0); |
| 575 | 583 | try testing.expect(shr(u8, 0b11111111, @as(usize, 9)) == 0); |
| ... | ... | @@ -611,6 +619,10 @@ pub fn rotr(comptime T: type, x: T, r: anytype) T { |
| 611 | 619 | } |
| 612 | 620 | |
| 613 | 621 | test "rotr" { |
| 622 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 623 | // https://github.com/ziglang/zig/issues/12012 | |
| 624 | return error.SkipZigTest; | |
| 625 | } | |
| 614 | 626 | try testing.expect(rotr(u0, 0b0, @as(usize, 3)) == 0b0); |
| 615 | 627 | try testing.expect(rotr(u5, 0b00001, @as(usize, 0)) == 0b00001); |
| 616 | 628 | try testing.expect(rotr(u6, 0b000001, @as(usize, 7)) == 0b100000); |
| ... | ... | @@ -651,6 +663,10 @@ pub fn rotl(comptime T: type, x: T, r: anytype) T { |
| 651 | 663 | } |
| 652 | 664 | |
| 653 | 665 | test "rotl" { |
| 666 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 667 | // https://github.com/ziglang/zig/issues/12012 | |
| 668 | return error.SkipZigTest; | |
| 669 | } | |
| 654 | 670 | try testing.expect(rotl(u0, 0b0, @as(usize, 3)) == 0b0); |
| 655 | 671 | try testing.expect(rotl(u5, 0b00001, @as(usize, 0)) == 0b00001); |
| 656 | 672 | try testing.expect(rotl(u6, 0b000001, @as(usize, 7)) == 0b000010); |
lib/std/simd.zig+4| ... | ... | @@ -191,6 +191,10 @@ pub fn extract( |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | test "vector patterns" { |
| 194 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 195 | // https://github.com/ziglang/zig/issues/12012 | |
| 196 | return error.SkipZigTest; | |
| 197 | } | |
| 194 | 198 | const base = @Vector(4, u32){ 10, 20, 30, 40 }; |
| 195 | 199 | const other_base = @Vector(4, u32){ 55, 66, 77, 88 }; |
| 196 | 200 |
test/behavior/atomics.zig+11| ... | ... | @@ -151,6 +151,11 @@ test "cmpxchg on a global variable" { |
| 151 | 151 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 152 | 152 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 153 | 153 | |
| 154 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 155 | // https://github.com/ziglang/zig/issues/10627 | |
| 156 | return error.SkipZigTest; | |
| 157 | } | |
| 158 | ||
| 154 | 159 | _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic); |
| 155 | 160 | try expect(a_global_variable == 42); |
| 156 | 161 | } |
| ... | ... | @@ -213,6 +218,12 @@ test "atomicrmw with floats" { |
| 213 | 218 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 214 | 219 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 215 | 220 | |
| 221 | if ((builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) and | |
| 222 | builtin.cpu.arch == .aarch64) | |
| 223 | { | |
| 224 | // https://github.com/ziglang/zig/issues/10627 | |
| 225 | return error.SkipZigTest; | |
| 226 | } | |
| 216 | 227 | try testAtomicRmwFloat(); |
| 217 | 228 | comptime try testAtomicRmwFloat(); |
| 218 | 229 | } |
test/behavior/math.zig+6| ... | ... | @@ -166,6 +166,12 @@ test "@ctz vectors" { |
| 166 | 166 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 167 | 167 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 168 | 168 | |
| 169 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 170 | // This regressed with LLVM 14: | |
| 171 | // https://github.com/ziglang/zig/issues/12013 | |
| 172 | return error.SkipZigTest; | |
| 173 | } | |
| 174 | ||
| 169 | 175 | try testCtzVectors(); |
| 170 | 176 | comptime try testCtzVectors(); |
| 171 | 177 | } |
test/behavior/vector.zig+6| ... | ... | @@ -181,6 +181,12 @@ test "tuple to vector" { |
| 181 | 181 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 182 | 182 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 183 | 183 | |
| 184 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 185 | // Regressed with LLVM 14: | |
| 186 | // https://github.com/ziglang/zig/issues/12012 | |
| 187 | return error.SkipZigTest; | |
| 188 | } | |
| 189 | ||
| 184 | 190 | const S = struct { |
| 185 | 191 | fn doTheTest() !void { |
| 186 | 192 | const Vec3 = @Vector(3, i32); |