authorgravatar for paul.verigo@gmail.comPavel Verigo <paul.verigo@gmail.com> 2026-04-08 16:53:24+02:00
committergravatar for paul.verigo@gmail.comPavel Verigo <paul.verigo@gmail.com> 2026-04-09 00:14:09+02:00
log5b5f828019331fc7714d39b760e12b488bfd577f
treef8d033bb141cac14cb5ebecf6cf4b56b0a4b8d7a
parented9b0655f7e3ed8efa1fe1b1beb0fa13bf37b560

test: skip .stage2_c for > 128 bits tests + remove skip for x86_64


5 files changed, 28 insertions(+), 1 deletions(-)

test/behavior/cast.zig+2
......@@ -129,6 +129,7 @@ fn testIntFromFloat(comptime F: type, f: F, comptime I: type, i: I) !void {
129129test "@intFromFloat > 128 bits" {
130130 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
131131 if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
132 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
132133
133134 try testIntFromFloat(f16, 1024, u140, 1024);
134135 try testIntFromFloat(f16, -1024, i140, -1024);
......@@ -153,6 +154,7 @@ fn testFloatFromInt(comptime I: type, i: I, comptime F: type, expected: F) !void
153154test "@floatFromInt > 128 bits" {
154155 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
155156 if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
157 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
156158
157159 try testFloatFromInt(u140, 1024, f16, 1024);
158160 try testFloatFromInt(i140, -1024, f16, -1024);
test/behavior/cast_int.zig+1
......@@ -169,6 +169,7 @@ test "@intCast <= 64 bits" {
169169
170170test "@intCast > 128 bits" {
171171 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
172 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
172173
173174 try testIntCast(u8, 123, u140, 123);
174175 try testIntCast(u64, 1 << 63, u140, 1 << 63);
test/behavior/math.zig+20-1
......@@ -1102,6 +1102,7 @@ test "@mulWithOverflow bitsize 128 bits" {
11021102
11031103test "@mulWithOverflow > 128 bits" {
11041104 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1105 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
11051106
11061107 try testMulWithOverflow(u140, 0, maxInt(u140), 0, 0);
11071108 try testMulWithOverflow(u140, 1, maxInt(u140), maxInt(u140), 0);
......@@ -1327,6 +1328,7 @@ test "@shlWithOverflow > 64 bits" {
13271328
13281329test "@shlWithOverflow > 128 bits" {
13291330 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1331 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
13301332
13311333 try testShlWithOverflow(u140, 1 << 100, 20, 1 << 120, 0);
13321334 try testShlWithOverflow(u140, 1 << 100, 40, 0, 1);
......@@ -1355,6 +1357,7 @@ fn testAnd(comptime T: type, a: T, b: T, expected: T) !void {
13551357
13561358test "and > 128 bits" {
13571359 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1360 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
13581361
13591362 try testAnd(u140, (1 << 139) | (1 << 70) | 0xaa, (1 << 139) | (1 << 69) | 0xcc, (1 << 139) | 0x88);
13601363 try testAnd(u140, maxInt(u140), 1 << 100, 1 << 100);
......@@ -1383,6 +1386,7 @@ fn testOr(comptime T: type, a: T, b: T, expected: T) !void {
13831386
13841387test "or > 128 bits" {
13851388 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1389 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
13861390
13871391 try testOr(u140, 0, 1 << 139, 1 << 139);
13881392 try testOr(u140, (1 << 70) | 0xa, (1 << 69) | 0x5, (1 << 70) | (1 << 69) | 0xf);
......@@ -1411,6 +1415,7 @@ fn testXor(comptime T: type, a: T, b: T, expected: T) !void {
14111415
14121416test "xor > 128 bits" {
14131417 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1418 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
14141419
14151420 try testXor(u140, 0, maxInt(u140), maxInt(u140));
14161421 try testXor(u140, 1 << 139, 1 << 139, 0);
......@@ -1439,6 +1444,7 @@ fn testNot(comptime T: type, a: T, expected: T) !void {
14391444
14401445test "not > 128 bits" {
14411446 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1447 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
14421448
14431449 try testNot(u140, 0, maxInt(u140));
14441450 try testNot(u140, maxInt(u140), 0);
......@@ -1467,6 +1473,7 @@ fn testShl(comptime T: type, a: T, b: std.math.Log2Int(T), expected: T) !void {
14671473
14681474test "shl > 128 bits" {
14691475 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1476 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
14701477
14711478 try testShl(u140, 1 << 5, 10, 1 << 15);
14721479 try testShl(u140, 3, 138, (1 << 139) | (1 << 138));
......@@ -1495,6 +1502,7 @@ fn testShr(comptime T: type, a: T, b: std.math.Log2Int(T), expected: T) !void {
14951502
14961503test "shr > 128 bits" {
14971504 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1505 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
14981506
14991507 try testShr(u140, 1 << 139, 39, 1 << 100);
15001508 try testShr(u140, (1 << 70) | 8, 3, (1 << 67) | 1);
......@@ -1523,6 +1531,7 @@ fn testClz(comptime T: type, a: T, expected: u16) !void {
15231531
15241532test "@clz > 128 bits" {
15251533 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1534 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
15261535
15271536 try testClz(u140, 0, 140);
15281537 try testClz(u140, 1 << 139, 0);
......@@ -1551,6 +1560,7 @@ fn testCtz(comptime T: type, a: T, expected: u16) !void {
15511560
15521561test "@ctz > 128 bits" {
15531562 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1563 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
15541564
15551565 try testCtz(u140, 0, 140);
15561566 try testCtz(u140, 1 << 139, 139);
......@@ -1579,6 +1589,7 @@ fn testPopCount(comptime T: type, a: T, expected: u16) !void {
15791589
15801590test "@popCount > 128 bits" {
15811591 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1592 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
15821593
15831594 try testPopCount(u140, 0, 0);
15841595 try testPopCount(u140, maxInt(u140), 140);
......@@ -1607,6 +1618,7 @@ fn testBitReverse(comptime T: type, a: T, expected: T) !void {
16071618
16081619test "@bitReverse > 128 bits" {
16091620 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1621 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
16101622
16111623 try testBitReverse(u140, 1 << 139, 1);
16121624 try testBitReverse(u140, 1 << 70, 1 << 69);
......@@ -1635,6 +1647,7 @@ fn testByteSwap(comptime T: type, a: T, expected: T) !void {
16351647
16361648test "@byteSwap > 128 bits" {
16371649 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1650 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
16381651
16391652 try testByteSwap(u144, 1 << 136, 1);
16401653 try testByteSwap(u144, 1, 1 << 136);
......@@ -1663,6 +1676,7 @@ fn testMax(comptime T: type, a: T, b: T, expected: T) !void {
16631676
16641677test "@max > 128 bits" {
16651678 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1679 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
16661680
16671681 try testMax(u140, 0, maxInt(u140), maxInt(u140));
16681682 try testMax(u140, 1 << 139, 1 << 138, 1 << 139);
......@@ -1691,6 +1705,7 @@ fn testMin(comptime T: type, a: T, b: T, expected: T) !void {
16911705
16921706test "@min > 128 bits" {
16931707 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1708 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
16941709
16951710 try testMin(u140, 0, maxInt(u140), 0);
16961711 try testMin(u140, 1 << 139, 1 << 138, 1 << 138);
......@@ -1719,6 +1734,7 @@ fn testAbs(comptime T: type, a: T, expected: anytype) !void {
17191734
17201735test "@abs > 128 bits" {
17211736 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1737 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
17221738
17231739 try testAbs(u140, 0, 0);
17241740 try testAbs(u140, 1 << 139, 1 << 139);
......@@ -1742,6 +1758,7 @@ fn testRem(comptime T: type, numerator: T, denominator: T, expected: T) !void {
17421758
17431759test "@rem > 128 bits" {
17441760 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1761 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
17451762
17461763 try testRem(u140, 0, maxInt(u140), 0);
17471764 try testRem(u140, maxInt(u140), maxInt(u140), 0);
......@@ -1768,7 +1785,7 @@ fn testMod(comptime T: type, numerator: T, denominator: T, expected: T) !void {
17681785
17691786test "@mod > 128 bits" {
17701787 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1771 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
1788 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
17721789
17731790 try testMod(u140, 0, maxInt(u140), 0);
17741791 try testMod(u140, maxInt(u140), maxInt(u140), 0);
......@@ -1795,6 +1812,7 @@ fn testDivFloor(comptime T: type, numerator: T, denominator: T, expected: T) !vo
17951812
17961813test "@divFloor > 128 bits" {
17971814 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1815 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
17981816
17991817 try testDivFloor(u140, 0, maxInt(u140), 0);
18001818 try testDivFloor(u140, maxInt(u140), maxInt(u140), 1);
......@@ -1822,6 +1840,7 @@ fn testDivTrunc(comptime T: type, numerator: T, denominator: T, expected: T) !vo
18221840
18231841test "@divTrunc > 128 bits" {
18241842 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
1843 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
18251844
18261845 try testDivTrunc(u140, 0, maxInt(u140), 0);
18271846 try testDivTrunc(u140, maxInt(u140), maxInt(u140), 1);
test/behavior/saturating_arithmetic.zig+4
......@@ -370,6 +370,7 @@ test "saturating shl uses the LHS type" {
370370
371371test "sat add > 128 bits" {
372372 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
373 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
373374
374375 try testSatAdd(u140, 0, 0, 0);
375376 try testSatAdd(u140, maxInt(u140), 1, maxInt(u140));
......@@ -384,6 +385,7 @@ test "sat add > 128 bits" {
384385
385386test "sat sub > 128 bits" {
386387 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
388 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
387389
388390 try testSatSub(u140, 0, 1, 0);
389391 try testSatSub(u140, maxInt(u140), maxInt(u140), 0);
......@@ -398,6 +400,7 @@ test "sat sub > 128 bits" {
398400
399401test "sat mul > 128 bits" {
400402 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
403 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
401404
402405 try testSatMul(u140, 0, maxInt(u140), 0);
403406 try testSatMul(u140, 1 << 70, 1 << 69, 1 << 139);
......@@ -412,6 +415,7 @@ test "sat mul > 128 bits" {
412415
413416test "sat shl > 128 bits" {
414417 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
418 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
415419
416420 try testSatShl(u140, 0, u8, 17, 0);
417421 try testSatShl(u140, 1 << 100, u8, 20, 1 << 120);
test/behavior/truncate.zig+1
......@@ -74,6 +74,7 @@ fn testTruncate(comptime S: type, a: S, comptime D: type, expected: D) !void {
7474
7575test "@truncate > 128 bits" {
7676 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
77 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
7778
7879 try testTruncate(u140, 0, u128, 0);
7980 try testTruncate(u140, maxInt(u140), u128, maxInt(u128));