| author | |
| committer | |
| log | 5cb9668632525d6658dbf1d07202f8e17e339878 |
| tree | 49179cb1857c82e4ad361d864f3fc8a265d4005a |
| parent | 4fba7336a9038b4abf647caf822f89df717d3cc0 |
Closes #10627.
Closes #12013.
Closes #18034.10 files changed, 2 insertions(+), 78 deletions(-)
test/behavior/align.zig-4| ... | ... | @@ -582,10 +582,6 @@ test "comptime alloc alignment" { |
| 582 | 582 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 583 | 583 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 584 | 584 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // flaky |
| 585 | if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch == .x86) { | |
| 586 | // https://github.com/ziglang/zig/issues/18034 | |
| 587 | return error.SkipZigTest; | |
| 588 | } | |
| 589 | 585 | |
| 590 | 586 | comptime var bytes1 = [_]u8{0}; |
| 591 | 587 | _ = &bytes1; |
test/behavior/atomics.zig-12| ... | ... | @@ -152,11 +152,6 @@ test "cmpxchg on a global variable" { |
| 152 | 152 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 153 | 153 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 154 | 154 | |
| 155 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 156 | // https://github.com/ziglang/zig/issues/10627 | |
| 157 | return error.SkipZigTest; | |
| 158 | } | |
| 159 | ||
| 160 | 155 | _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .acquire, .monotonic); |
| 161 | 156 | try expect(a_global_variable == 42); |
| 162 | 157 | } |
| ... | ... | @@ -202,10 +197,6 @@ test "atomicrmw with floats" { |
| 202 | 197 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 203 | 198 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 204 | 199 | |
| 205 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 206 | // https://github.com/ziglang/zig/issues/10627 | |
| 207 | return error.SkipZigTest; | |
| 208 | } | |
| 209 | 200 | try testAtomicRmwFloat(); |
| 210 | 201 | try comptime testAtomicRmwFloat(); |
| 211 | 202 | } |
| ... | ... | @@ -306,9 +297,6 @@ test "atomicrmw with 128-bit ints" { |
| 306 | 297 | |
| 307 | 298 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 308 | 299 | |
| 309 | // TODO "ld.lld: undefined symbol: __sync_lock_test_and_set_16" on -mcpu x86_64 | |
| 310 | if (builtin.cpu.arch == .x86_64 and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | |
| 311 | ||
| 312 | 300 | try testAtomicRmwInt128(.signed); |
| 313 | 301 | try testAtomicRmwInt128(.unsigned); |
| 314 | 302 | try comptime testAtomicRmwInt128(.signed); |
test/behavior/basic.zig-4| ... | ... | @@ -1426,10 +1426,6 @@ test "allocation and looping over 3-byte integer" { |
| 1426 | 1426 | return error.SkipZigTest; // TODO |
| 1427 | 1427 | } |
| 1428 | 1428 | |
| 1429 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .wasm32) { | |
| 1430 | return error.SkipZigTest; // TODO | |
| 1431 | } | |
| 1432 | ||
| 1433 | 1429 | try expect(@sizeOf(u24) == 4); |
| 1434 | 1430 | try expect(@sizeOf([1]u24) == 4); |
| 1435 | 1431 | try expect(@alignOf(u24) == 4); |
test/behavior/bitcast.zig-5| ... | ... | @@ -343,11 +343,6 @@ test "comptime @bitCast packed struct to int and back" { |
| 343 | 343 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 344 | 344 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 345 | 345 | |
| 346 | if (builtin.zig_backend == .stage2_llvm and native_endian == .big) { | |
| 347 | // https://github.com/ziglang/zig/issues/13782 | |
| 348 | return error.SkipZigTest; | |
| 349 | } | |
| 350 | ||
| 351 | 346 | const S = packed struct { |
| 352 | 347 | void: void = {}, |
| 353 | 348 | uint: u8 = 13, |
test/behavior/call.zig+2-4| ... | ... | @@ -275,8 +275,7 @@ test "forced tail call" { |
| 275 | 275 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 276 | 276 | |
| 277 | 277 | if (builtin.zig_backend == .stage2_llvm) { |
| 278 | // Only attempt this test on targets we know have tail call support in LLVM. | |
| 279 | if (builtin.cpu.arch != .x86_64 and builtin.cpu.arch != .aarch64) { | |
| 278 | if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) { | |
| 280 | 279 | return error.SkipZigTest; |
| 281 | 280 | } |
| 282 | 281 | } |
| ... | ... | @@ -311,8 +310,7 @@ test "inline call preserves tail call" { |
| 311 | 310 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 312 | 311 | |
| 313 | 312 | if (builtin.zig_backend == .stage2_llvm) { |
| 314 | // Only attempt this test on targets we know have tail call support in LLVM. | |
| 315 | if (builtin.cpu.arch != .x86_64 and builtin.cpu.arch != .aarch64) { | |
| 313 | if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) { | |
| 316 | 314 | return error.SkipZigTest; |
| 317 | 315 | } |
| 318 | 316 | } |
test/behavior/floatop.zig-10| ... | ... | @@ -1310,11 +1310,6 @@ test "@trunc f16" { |
| 1310 | 1310 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; |
| 1311 | 1311 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1312 | 1312 | |
| 1313 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) { | |
| 1314 | // https://github.com/ziglang/zig/issues/16846 | |
| 1315 | return error.SkipZigTest; | |
| 1316 | } | |
| 1317 | ||
| 1318 | 1313 | try testTrunc(f16); |
| 1319 | 1314 | try comptime testTrunc(f16); |
| 1320 | 1315 | } |
| ... | ... | @@ -1326,11 +1321,6 @@ test "@trunc f32/f64" { |
| 1326 | 1321 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; |
| 1327 | 1322 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1328 | 1323 | |
| 1329 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) { | |
| 1330 | // https://github.com/ziglang/zig/issues/16846 | |
| 1331 | return error.SkipZigTest; | |
| 1332 | } | |
| 1333 | ||
| 1334 | 1324 | try testTrunc(f32); |
| 1335 | 1325 | try comptime testTrunc(f32); |
| 1336 | 1326 | try testTrunc(f64); |
test/behavior/math.zig-16| ... | ... | @@ -194,12 +194,6 @@ test "@ctz vectors" { |
| 194 | 194 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 195 | 195 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 196 | 196 | |
| 197 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 198 | // This regressed with LLVM 14: | |
| 199 | // https://github.com/ziglang/zig/issues/12013 | |
| 200 | return error.SkipZigTest; | |
| 201 | } | |
| 202 | ||
| 203 | 197 | try testCtzVectors(); |
| 204 | 198 | try comptime testCtzVectors(); |
| 205 | 199 | } |
| ... | ... | @@ -478,11 +472,6 @@ test "division" { |
| 478 | 472 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; |
| 479 | 473 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 480 | 474 | |
| 481 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) { | |
| 482 | // https://github.com/ziglang/zig/issues/16846 | |
| 483 | return error.SkipZigTest; | |
| 484 | } | |
| 485 | ||
| 486 | 475 | try testIntDivision(); |
| 487 | 476 | try comptime testIntDivision(); |
| 488 | 477 | |
| ... | ... | @@ -721,11 +710,6 @@ test "unsigned 64-bit division" { |
| 721 | 710 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 722 | 711 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 723 | 712 | |
| 724 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) { | |
| 725 | // https://github.com/ziglang/zig/issues/16846 | |
| 726 | return error.SkipZigTest; | |
| 727 | } | |
| 728 | ||
| 729 | 713 | try test_u64_div(); |
| 730 | 714 | try comptime test_u64_div(); |
| 731 | 715 | } |
test/behavior/shuffle.zig-5| ... | ... | @@ -170,11 +170,6 @@ test "@shuffle bool 2" { |
| 170 | 170 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 171 | 171 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 172 | 172 | |
| 173 | if (builtin.zig_backend == .stage2_llvm) { | |
| 174 | // https://github.com/ziglang/zig/issues/3246 | |
| 175 | return error.SkipZigTest; | |
| 176 | } | |
| 177 | ||
| 178 | 173 | const S = struct { |
| 179 | 174 | fn doTheTest() !void { |
| 180 | 175 | var x: @Vector(3, bool) = [3]bool{ false, true, false }; |
test/behavior/threadlocal.zig-12| ... | ... | @@ -6,10 +6,6 @@ test "thread local variable" { |
| 6 | 6 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 7 | 7 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 8 | 8 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 9 | if (builtin.zig_backend == .stage2_llvm) switch (builtin.cpu.arch) { | |
| 10 | .x86_64, .x86 => {}, | |
| 11 | else => return error.SkipZigTest, | |
| 12 | }; // TODO | |
| 13 | 9 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 14 | 10 | |
| 15 | 11 | if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) { |
| ... | ... | @@ -28,10 +24,6 @@ test "pointer to thread local array" { |
| 28 | 24 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 29 | 25 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 30 | 26 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 31 | if (builtin.zig_backend == .stage2_llvm) switch (builtin.cpu.arch) { | |
| 32 | .x86_64, .x86 => {}, | |
| 33 | else => return error.SkipZigTest, | |
| 34 | }; // TODO | |
| 35 | 27 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 36 | 28 | |
| 37 | 29 | const s = "Hello world"; |
| ... | ... | @@ -45,10 +37,6 @@ test "reference a global threadlocal variable" { |
| 45 | 37 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 46 | 38 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 47 | 39 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 48 | if (builtin.zig_backend == .stage2_llvm) switch (builtin.cpu.arch) { | |
| 49 | .x86_64, .x86 => {}, | |
| 50 | else => return error.SkipZigTest, | |
| 51 | }; // TODO | |
| 52 | 40 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 53 | 41 | |
| 54 | 42 | _ = nrfx_uart_rx(&g_uart0); |
test/behavior/vector.zig-6| ... | ... | @@ -557,7 +557,6 @@ test "vector division operators" { |
| 557 | 557 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 558 | 558 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 559 | 559 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 560 | if (builtin.zig_backend == .stage2_llvm and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest; | |
| 561 | 560 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 562 | 561 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 563 | 562 | |
| ... | ... | @@ -1571,11 +1570,6 @@ test "@reduce on bool vector" { |
| 1571 | 1570 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 1572 | 1571 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1573 | 1572 | |
| 1574 | if (comptime builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .big) { | |
| 1575 | // https://github.com/ziglang/zig/issues/13782 | |
| 1576 | return error.SkipZigTest; | |
| 1577 | } | |
| 1578 | ||
| 1579 | 1573 | const a = @Vector(2, bool){ true, true }; |
| 1580 | 1574 | const b = @Vector(1, bool){true}; |
| 1581 | 1575 | try std.testing.expect(@reduce(.And, a)); |