authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-15 17:36:38-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-19 09:37:50-07:00
log821971106383e6e64e679c4402278399798c76eb
tree850e0955bdb170121a9c8470009c19acfa1d02e2
parentb1b155feacaa12a758ef4800cef021da7ae19040

disable behavior tests regressed by LLVM 17

See #16844 See #16845 See #16846 See #16848

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

test/behavior/align.zig+6-2
......@@ -546,11 +546,15 @@ test "align(N) on functions" {
546546 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
547547 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
548548 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
549 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
550549 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
551550
552 // This is not supported on MSVC
551 if (builtin.zig_backend == .stage2_c) {
552 // https://github.com/ziglang/zig/issues/16845
553 return error.SkipZigTest;
554 }
555
553556 if (builtin.zig_backend == .stage2_c and builtin.os.tag == .windows) {
557 // This is not supported on MSVC.
554558 return error.SkipZigTest;
555559 }
556560
test/behavior/atomics.zig+5
......@@ -243,6 +243,11 @@ test "atomicrmw with ints" {
243243 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
244244 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
245245
246 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
247 // https://github.com/ziglang/zig/issues/16846
248 return error.SkipZigTest;
249 }
250
246251 try testAtomicRmwInts();
247252 try comptime testAtomicRmwInts();
248253}
test/behavior/cast.zig+5
......@@ -1157,6 +1157,11 @@ fn foobar(func: PFN_void) !void {
11571157test "cast function with an opaque parameter" {
11581158 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
11591159
1160 if (builtin.zig_backend == .stage2_c) {
1161 // https://github.com/ziglang/zig/issues/16845
1162 return error.SkipZigTest;
1163 }
1164
11601165 const Container = struct {
11611166 const Ctx = opaque {};
11621167 ctx: *Ctx,
test/behavior/floatop.zig+50
......@@ -711,6 +711,18 @@ test "@floor f80" {
711711 return error.SkipZigTest;
712712 }
713713
714 if (builtin.zig_backend == .stage2_llvm and
715 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
716 {
717 // https://github.com/ziglang/zig/issues/16844
718 return error.SkipZigTest;
719 }
720
721 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
722 // https://github.com/ziglang/zig/issues/16846
723 return error.SkipZigTest;
724 }
725
714726 try testFloorLegacy(f80, 12.0);
715727 try comptime testFloorLegacy(f80, 12.0);
716728}
......@@ -722,6 +734,18 @@ test "@floor f128" {
722734 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
723735 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
724736
737 if (builtin.zig_backend == .stage2_llvm and
738 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
739 {
740 // https://github.com/ziglang/zig/issues/16844
741 return error.SkipZigTest;
742 }
743
744 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
745 // https://github.com/ziglang/zig/issues/16848
746 return error.SkipZigTest;
747 }
748
725749 try testFloorLegacy(f128, 12.0);
726750 try comptime testFloorLegacy(f128, 12.0);
727751}
......@@ -807,6 +831,13 @@ test "@ceil f80" {
807831 return error.SkipZigTest;
808832 }
809833
834 if (builtin.zig_backend == .stage2_llvm and
835 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
836 {
837 // https://github.com/ziglang/zig/issues/16844
838 return error.SkipZigTest;
839 }
840
810841 try testCeilLegacy(f80, 12.0);
811842 try comptime testCeilLegacy(f80, 12.0);
812843}
......@@ -818,6 +849,13 @@ test "@ceil f128" {
818849 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
819850 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
820851
852 if (builtin.zig_backend == .stage2_llvm and
853 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
854 {
855 // https://github.com/ziglang/zig/issues/16844
856 return error.SkipZigTest;
857 }
858
821859 try testCeilLegacy(f128, 12.0);
822860 try comptime testCeilLegacy(f128, 12.0);
823861}
......@@ -877,6 +915,11 @@ test "another, possibly redundant, @trunc test" {
877915 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
878916 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
879917
918 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
919 // https://github.com/ziglang/zig/issues/16846
920 return error.SkipZigTest;
921 }
922
880923 try testTruncLegacy(f64, 12.0);
881924 try comptime testTruncLegacy(f64, 12.0);
882925 try testTruncLegacy(f32, 12.0);
......@@ -919,6 +962,13 @@ test "@trunc f128" {
919962 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
920963 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
921964
965 if (builtin.zig_backend == .stage2_llvm and
966 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
967 {
968 // https://github.com/ziglang/zig/issues/16844
969 return error.SkipZigTest;
970 }
971
922972 try testTruncLegacy(f128, 12.0);
923973 try comptime testTruncLegacy(f128, 12.0);
924974}
test/behavior/math.zig+38
......@@ -417,6 +417,11 @@ test "division" {
417417 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
418418 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
419419
420 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
421 // https://github.com/ziglang/zig/issues/16846
422 return error.SkipZigTest;
423 }
424
420425 try testDivision();
421426 try comptime testDivision();
422427}
......@@ -591,6 +596,11 @@ test "unsigned 64-bit division" {
591596 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
592597 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
593598
599 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
600 // https://github.com/ziglang/zig/issues/16846
601 return error.SkipZigTest;
602 }
603
594604 try test_u64_div();
595605 try comptime test_u64_div();
596606}
......@@ -1350,6 +1360,13 @@ test "float remainder division using @rem" {
13501360 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
13511361 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
13521362
1363 if (builtin.zig_backend == .stage2_llvm and
1364 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
1365 {
1366 // https://github.com/ziglang/zig/issues/16844
1367 return error.SkipZigTest;
1368 }
1369
13531370 try comptime frem(f16);
13541371 try comptime frem(f32);
13551372 try comptime frem(f64);
......@@ -1393,6 +1410,13 @@ test "float modulo division using @mod" {
13931410 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
13941411 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
13951412
1413 if (builtin.zig_backend == .stage2_llvm and
1414 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
1415 {
1416 // https://github.com/ziglang/zig/issues/16844
1417 return error.SkipZigTest;
1418 }
1419
13961420 try comptime fmod(f16);
13971421 try comptime fmod(f32);
13981422 try comptime fmod(f64);
......@@ -1456,6 +1480,13 @@ test "@round f80" {
14561480 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
14571481 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
14581482
1483 if (builtin.zig_backend == .stage2_llvm and
1484 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
1485 {
1486 // https://github.com/ziglang/zig/issues/16844
1487 return error.SkipZigTest;
1488 }
1489
14591490 try testRound(f80, 12.0);
14601491 try comptime testRound(f80, 12.0);
14611492}
......@@ -1468,6 +1499,13 @@ test "@round f128" {
14681499 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
14691500 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
14701501
1502 if (builtin.zig_backend == .stage2_llvm and
1503 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
1504 {
1505 // https://github.com/ziglang/zig/issues/16844
1506 return error.SkipZigTest;
1507 }
1508
14711509 try testRound(f128, 12.0);
14721510 try comptime testRound(f128, 12.0);
14731511}
test/behavior/muladd.zig+38
......@@ -57,6 +57,18 @@ test "@mulAdd f80" {
5757 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
5858 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
5959
60 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
61 // https://github.com/ziglang/zig/issues/16848
62 return error.SkipZigTest;
63 }
64
65 if (builtin.zig_backend == .stage2_llvm and
66 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
67 {
68 // https://github.com/ziglang/zig/issues/16844
69 return error.SkipZigTest;
70 }
71
6072 try comptime testMulAdd80();
6173 try testMulAdd80();
6274}
......@@ -76,6 +88,18 @@ test "@mulAdd f128" {
7688 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
7789 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
7890
91 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
92 // https://github.com/ziglang/zig/issues/16848
93 return error.SkipZigTest;
94 }
95
96 if (builtin.zig_backend == .stage2_llvm and
97 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
98 {
99 // https://github.com/ziglang/zig/issues/16844
100 return error.SkipZigTest;
101 }
102
79103 try comptime testMulAdd128();
80104 try testMulAdd128();
81105}
......@@ -179,6 +203,13 @@ test "vector f80" {
179203 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
180204 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
181205
206 if (builtin.zig_backend == .stage2_llvm and
207 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
208 {
209 // https://github.com/ziglang/zig/issues/16844
210 return error.SkipZigTest;
211 }
212
182213 try comptime vector80();
183214 try vector80();
184215}
......@@ -204,6 +235,13 @@ test "vector f128" {
204235 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
205236 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
206237
238 if (builtin.zig_backend == .stage2_llvm and
239 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
240 {
241 // https://github.com/ziglang/zig/issues/16844
242 return error.SkipZigTest;
243 }
244
207245 try comptime vector128();
208246 try vector128();
209247}
test/behavior/usingnamespace/import_segregation.zig+10
......@@ -7,6 +7,16 @@ usingnamespace @import("bar.zig");
77test "no clobbering happened" {
88 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
99
10 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
11 // https://github.com/ziglang/zig/issues/16846
12 return error.SkipZigTest;
13 }
14
15 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
16 // https://github.com/ziglang/zig/issues/16848
17 return error.SkipZigTest;
18 }
19
1020 @This().foo_function();
1121 @This().bar_function();
1222 try expect(@This().saw_foo_function);
test/behavior/vector.zig+7
......@@ -104,6 +104,13 @@ test "vector float operators" {
104104 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
105105 if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
106106
107 if (builtin.zig_backend == .stage2_llvm and
108 (builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
109 {
110 // https://github.com/ziglang/zig/issues/16844
111 return error.SkipZigTest;
112 }
113
107114 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
108115 const S = struct {
109116 fn doTheTest() !void {
test/behavior/widening.zig+5
......@@ -66,6 +66,11 @@ test "float widening f16 to f128" {
6666 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
6767 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
6868
69 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
70 // https://github.com/ziglang/zig/issues/16848
71 return error.SkipZigTest;
72 }
73
6974 var x: f16 = 12.34;
7075 var y: f128 = x;
7176 try expect(x == y);