| 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,6 +70,11 @@ test "fmt.parseFloat" { |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | test "fmt.parseFloat nan and inf" { | 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 | inline for ([_]type{ f16, f32, f64, f128 }) |T| { | 78 | inline for ([_]type{ f16, f32, f64, f128 }) |T| { |
| 74 | const Z = std.meta.Int(.unsigned, @typeInfo(T).Float.bits); | 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,6 +530,10 @@ pub fn shl(comptime T: type, a: T, shift_amt: anytype) T { |
| 530 | } | 530 | } |
| 531 | 531 | ||
| 532 | test "shl" { | 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 | try testing.expect(shl(u8, 0b11111111, @as(usize, 3)) == 0b11111000); | 537 | try testing.expect(shl(u8, 0b11111111, @as(usize, 3)) == 0b11111000); |
| 534 | try testing.expect(shl(u8, 0b11111111, @as(usize, 8)) == 0); | 538 | try testing.expect(shl(u8, 0b11111111, @as(usize, 8)) == 0); |
| 535 | try testing.expect(shl(u8, 0b11111111, @as(usize, 9)) == 0); | 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,6 +574,10 @@ pub fn shr(comptime T: type, a: T, shift_amt: anytype) T { |
| 570 | } | 574 | } |
| 571 | 575 | ||
| 572 | test "shr" { | 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 | try testing.expect(shr(u8, 0b11111111, @as(usize, 3)) == 0b00011111); | 581 | try testing.expect(shr(u8, 0b11111111, @as(usize, 3)) == 0b00011111); |
| 574 | try testing.expect(shr(u8, 0b11111111, @as(usize, 8)) == 0); | 582 | try testing.expect(shr(u8, 0b11111111, @as(usize, 8)) == 0); |
| 575 | try testing.expect(shr(u8, 0b11111111, @as(usize, 9)) == 0); | 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,6 +619,10 @@ pub fn rotr(comptime T: type, x: T, r: anytype) T { |
| 611 | } | 619 | } |
| 612 | 620 | ||
| 613 | test "rotr" { | 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 | try testing.expect(rotr(u0, 0b0, @as(usize, 3)) == 0b0); | 626 | try testing.expect(rotr(u0, 0b0, @as(usize, 3)) == 0b0); |
| 615 | try testing.expect(rotr(u5, 0b00001, @as(usize, 0)) == 0b00001); | 627 | try testing.expect(rotr(u5, 0b00001, @as(usize, 0)) == 0b00001); |
| 616 | try testing.expect(rotr(u6, 0b000001, @as(usize, 7)) == 0b100000); | 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,6 +663,10 @@ pub fn rotl(comptime T: type, x: T, r: anytype) T { |
| 651 | } | 663 | } |
| 652 | 664 | ||
| 653 | test "rotl" { | 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 | try testing.expect(rotl(u0, 0b0, @as(usize, 3)) == 0b0); | 670 | try testing.expect(rotl(u0, 0b0, @as(usize, 3)) == 0b0); |
| 655 | try testing.expect(rotl(u5, 0b00001, @as(usize, 0)) == 0b00001); | 671 | try testing.expect(rotl(u5, 0b00001, @as(usize, 0)) == 0b00001); |
| 656 | try testing.expect(rotl(u6, 0b000001, @as(usize, 7)) == 0b000010); | 672 | try testing.expect(rotl(u6, 0b000001, @as(usize, 7)) == 0b000010); |
lib/std/simd.zig+4| ... | @@ -191,6 +191,10 @@ pub fn extract( | ... | @@ -191,6 +191,10 @@ pub fn extract( |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | test "vector patterns" { | 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 | const base = @Vector(4, u32){ 10, 20, 30, 40 }; | 198 | const base = @Vector(4, u32){ 10, 20, 30, 40 }; |
| 195 | const other_base = @Vector(4, u32){ 55, 66, 77, 88 }; | 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,6 +151,11 @@ test "cmpxchg on a global variable" { |
| 151 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 151 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 152 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 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 | _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic); | 159 | _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic); |
| 155 | try expect(a_global_variable == 42); | 160 | try expect(a_global_variable == 42); |
| 156 | } | 161 | } |
| ... | @@ -213,6 +218,12 @@ test "atomicrmw with floats" { | ... | @@ -213,6 +218,12 @@ test "atomicrmw with floats" { |
| 213 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 218 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 214 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 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 | try testAtomicRmwFloat(); | 227 | try testAtomicRmwFloat(); |
| 217 | comptime try testAtomicRmwFloat(); | 228 | comptime try testAtomicRmwFloat(); |
| 218 | } | 229 | } |
test/behavior/math.zig+6| ... | @@ -166,6 +166,12 @@ test "@ctz vectors" { | ... | @@ -166,6 +166,12 @@ test "@ctz vectors" { |
| 166 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 166 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 167 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 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 | try testCtzVectors(); | 175 | try testCtzVectors(); |
| 170 | comptime try testCtzVectors(); | 176 | comptime try testCtzVectors(); |
| 171 | } | 177 | } |
test/behavior/vector.zig+6| ... | @@ -181,6 +181,12 @@ test "tuple to vector" { | ... | @@ -181,6 +181,12 @@ test "tuple to vector" { |
| 181 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 181 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 182 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 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 | const S = struct { | 190 | const S = struct { |
| 185 | fn doTheTest() !void { | 191 | fn doTheTest() !void { |
| 186 | const Vec3 = @Vector(3, i32); | 192 | const Vec3 = @Vector(3, i32); |