authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-10-27 01:39:06-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-10-27 01:40:27-04:00
log434a7db986d1ffd2d1e6b7d4bb69873ed05c7980
treef924dd3a3017b2870e21eb1157471784e9364f35
parent6ad22cd964741ec646eb551877591d719e0c41f5

x86_64: add missing spill


2 files changed, 1 insertions(+), 302 deletions(-)

lib/std/zig/parser_test.zig-302
......@@ -26,8 +26,6 @@ test "zig fmt: tuple struct" {
2626}
2727
2828test "zig fmt: preserves clobbers in inline asm with stray comma" {
29 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
30
3129 try testCanonical(
3230 \\fn foo() void {
3331 \\ asm volatile (""
......@@ -46,8 +44,6 @@ test "zig fmt: preserves clobbers in inline asm with stray comma" {
4644}
4745
4846test "zig fmt: remove trailing comma at the end of assembly clobber" {
49 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
50
5147 try testTransform(
5248 \\fn foo() void {
5349 \\ asm volatile (""
......@@ -70,8 +66,6 @@ test "zig fmt: remove trailing comma at the end of assembly clobber" {
7066}
7167
7268test "zig fmt: respect line breaks in struct field value declaration" {
73 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
74
7569 try testCanonical(
7670 \\const Foo = struct {
7771 \\ bar: u32 =
......@@ -226,8 +220,6 @@ test "zig fmt: file ends in comment after var decl" {
226220}
227221
228222test "zig fmt: if statement" {
229 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
230
231223 try testCanonical(
232224 \\test "" {
233225 \\ if (optional()) |some|
......@@ -326,8 +318,6 @@ test "zig fmt: decl between fields" {
326318}
327319
328320test "zig fmt: errdefer with payload" {
329 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
330
331321 try testCanonical(
332322 \\pub fn main() anyerror!void {
333323 \\ errdefer |a| x += 1;
......@@ -341,8 +331,6 @@ test "zig fmt: errdefer with payload" {
341331}
342332
343333test "zig fmt: nosuspend block" {
344 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
345
346334 try testCanonical(
347335 \\pub fn main() anyerror!void {
348336 \\ nosuspend {
......@@ -354,8 +342,6 @@ test "zig fmt: nosuspend block" {
354342}
355343
356344test "zig fmt: nosuspend await" {
357 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
358
359345 try testCanonical(
360346 \\fn foo() void {
361347 \\ x = nosuspend await y;
......@@ -376,8 +362,6 @@ test "zig fmt: container declaration, single line" {
376362}
377363
378364test "zig fmt: container declaration, one item, multi line trailing comma" {
379 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
380
381365 try testCanonical(
382366 \\test "" {
383367 \\ comptime {
......@@ -391,8 +375,6 @@ test "zig fmt: container declaration, one item, multi line trailing comma" {
391375}
392376
393377test "zig fmt: container declaration, no trailing comma on separate line" {
394 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
395
396378 try testTransform(
397379 \\test "" {
398380 \\ comptime {
......@@ -519,8 +501,6 @@ test "zig fmt: remove empty lines at start/end of container decl" {
519501}
520502
521503test "zig fmt: remove empty lines at start/end of block" {
522 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
523
524504 try testTransform(
525505 \\test {
526506 \\
......@@ -541,8 +521,6 @@ test "zig fmt: remove empty lines at start/end of block" {
541521}
542522
543523test "zig fmt: allow empty line before comment at start of block" {
544 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
545
546524 try testCanonical(
547525 \\test {
548526 \\
......@@ -606,8 +584,6 @@ test "zig fmt: comptime struct field" {
606584}
607585
608586test "zig fmt: break from block" {
609 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
610
611587 try testCanonical(
612588 \\const a = blk: {
613589 \\ break :blk 42;
......@@ -640,8 +616,6 @@ test "zig fmt: c pointer type" {
640616}
641617
642618test "zig fmt: builtin call with trailing comma" {
643 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
644
645619 try testCanonical(
646620 \\pub fn main() void {
647621 \\ @breakpoint();
......@@ -657,8 +631,6 @@ test "zig fmt: builtin call with trailing comma" {
657631}
658632
659633test "zig fmt: asm expression with comptime content" {
660 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
661
662634 try testCanonical(
663635 \\comptime {
664636 \\ asm ("foo" ++ "bar");
......@@ -683,8 +655,6 @@ test "zig fmt: asm expression with comptime content" {
683655}
684656
685657test "zig fmt: array types last token" {
686 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
687
688658 try testCanonical(
689659 \\test {
690660 \\ const x = [40]u32;
......@@ -698,8 +668,6 @@ test "zig fmt: array types last token" {
698668}
699669
700670test "zig fmt: sentinel-terminated array type" {
701 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
702
703671 try testCanonical(
704672 \\pub fn cStrToPrefixedFileW(s: [*:0]const u8) ![PATH_MAX_WIDE:0]u16 {
705673 \\ return sliceToPrefixedFileW(mem.toSliceConst(u8, s));
......@@ -709,8 +677,6 @@ test "zig fmt: sentinel-terminated array type" {
709677}
710678
711679test "zig fmt: sentinel-terminated slice type" {
712 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
713
714680 try testCanonical(
715681 \\pub fn toSlice(self: Buffer) [:0]u8 {
716682 \\ return self.list.toSlice()[0..self.len()];
......@@ -802,8 +768,6 @@ test "zig fmt: alignment in anonymous literal" {
802768}
803769
804770test "zig fmt: anon struct literal 0 element" {
805 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
806
807771 try testCanonical(
808772 \\test {
809773 \\ const x = .{};
......@@ -813,8 +777,6 @@ test "zig fmt: anon struct literal 0 element" {
813777}
814778
815779test "zig fmt: anon struct literal 1 element" {
816 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
817
818780 try testCanonical(
819781 \\test {
820782 \\ const x = .{ .a = b };
......@@ -824,8 +786,6 @@ test "zig fmt: anon struct literal 1 element" {
824786}
825787
826788test "zig fmt: anon struct literal 1 element comma" {
827 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
828
829789 try testCanonical(
830790 \\test {
831791 \\ const x = .{
......@@ -837,8 +797,6 @@ test "zig fmt: anon struct literal 1 element comma" {
837797}
838798
839799test "zig fmt: anon struct literal 2 element" {
840 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
841
842800 try testCanonical(
843801 \\test {
844802 \\ const x = .{ .a = b, .c = d };
......@@ -848,8 +806,6 @@ test "zig fmt: anon struct literal 2 element" {
848806}
849807
850808test "zig fmt: anon struct literal 2 element comma" {
851 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
852
853809 try testCanonical(
854810 \\test {
855811 \\ const x = .{
......@@ -862,8 +818,6 @@ test "zig fmt: anon struct literal 2 element comma" {
862818}
863819
864820test "zig fmt: anon struct literal 3 element" {
865 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
866
867821 try testCanonical(
868822 \\test {
869823 \\ const x = .{ .a = b, .c = d, .e = f };
......@@ -873,8 +827,6 @@ test "zig fmt: anon struct literal 3 element" {
873827}
874828
875829test "zig fmt: anon struct literal 3 element comma" {
876 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
877
878830 try testCanonical(
879831 \\test {
880832 \\ const x = .{
......@@ -888,8 +840,6 @@ test "zig fmt: anon struct literal 3 element comma" {
888840}
889841
890842test "zig fmt: struct literal 0 element" {
891 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
892
893843 try testCanonical(
894844 \\test {
895845 \\ const x = X{};
......@@ -899,8 +849,6 @@ test "zig fmt: struct literal 0 element" {
899849}
900850
901851test "zig fmt: struct literal 1 element" {
902 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
903
904852 try testCanonical(
905853 \\test {
906854 \\ const x = X{ .a = b };
......@@ -910,8 +858,6 @@ test "zig fmt: struct literal 1 element" {
910858}
911859
912860test "zig fmt: Unicode code point literal larger than u8" {
913 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
914
915861 try testCanonical(
916862 \\test {
917863 \\ const x = X{
......@@ -923,8 +869,6 @@ test "zig fmt: Unicode code point literal larger than u8" {
923869}
924870
925871test "zig fmt: struct literal 2 element" {
926 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
927
928872 try testCanonical(
929873 \\test {
930874 \\ const x = X{ .a = b, .c = d };
......@@ -934,8 +878,6 @@ test "zig fmt: struct literal 2 element" {
934878}
935879
936880test "zig fmt: struct literal 2 element comma" {
937 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
938
939881 try testCanonical(
940882 \\test {
941883 \\ const x = X{
......@@ -948,8 +890,6 @@ test "zig fmt: struct literal 2 element comma" {
948890}
949891
950892test "zig fmt: struct literal 3 element" {
951 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
952
953893 try testCanonical(
954894 \\test {
955895 \\ const x = X{ .a = b, .c = d, .e = f };
......@@ -959,8 +899,6 @@ test "zig fmt: struct literal 3 element" {
959899}
960900
961901test "zig fmt: struct literal 3 element comma" {
962 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
963
964902 try testCanonical(
965903 \\test {
966904 \\ const x = X{
......@@ -974,8 +912,6 @@ test "zig fmt: struct literal 3 element comma" {
974912}
975913
976914test "zig fmt: anon list literal 1 element" {
977 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
978
979915 try testCanonical(
980916 \\test {
981917 \\ const x = .{a};
......@@ -996,8 +932,6 @@ test "zig fmt: anon list literal 1 element comma" {
996932}
997933
998934test "zig fmt: anon list literal 2 element" {
999 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1000
1001935 try testCanonical(
1002936 \\test {
1003937 \\ const x = .{ a, b };
......@@ -1019,8 +953,6 @@ test "zig fmt: anon list literal 2 element comma" {
1019953}
1020954
1021955test "zig fmt: anon list literal 3 element" {
1022 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1023
1024956 try testCanonical(
1025957 \\test {
1026958 \\ const x = .{ a, b, c };
......@@ -1045,8 +977,6 @@ test "zig fmt: anon list literal 3 element comma" {
1045977}
1046978
1047979test "zig fmt: array literal 0 element" {
1048 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1049
1050980 try testCanonical(
1051981 \\test {
1052982 \\ const x = [_]u32{};
......@@ -1056,8 +986,6 @@ test "zig fmt: array literal 0 element" {
1056986}
1057987
1058988test "zig fmt: array literal 1 element" {
1059 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1060
1061989 try testCanonical(
1062990 \\test {
1063991 \\ const x = [_]u32{a};
......@@ -1078,8 +1006,6 @@ test "zig fmt: array literal 1 element comma" {
10781006}
10791007
10801008test "zig fmt: array literal 2 element" {
1081 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1082
10831009 try testCanonical(
10841010 \\test {
10851011 \\ const x = [_]u32{ a, b };
......@@ -1101,8 +1027,6 @@ test "zig fmt: array literal 2 element comma" {
11011027}
11021028
11031029test "zig fmt: array literal 3 element" {
1104 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1105
11061030 try testCanonical(
11071031 \\test {
11081032 \\ const x = [_]u32{ a, b, c };
......@@ -1125,8 +1049,6 @@ test "zig fmt: array literal 3 element comma" {
11251049}
11261050
11271051test "zig fmt: sentinel array literal 1 element" {
1128 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1129
11301052 try testCanonical(
11311053 \\test {
11321054 \\ const x = [_:9000]u32{a};
......@@ -1156,8 +1078,6 @@ test "zig fmt: slices with spaces in bounds" {
11561078}
11571079
11581080test "zig fmt: block in slice expression" {
1159 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1160
11611081 try testCanonical(
11621082 \\const a = b[{
11631083 \\ _ = x;
......@@ -1176,8 +1096,6 @@ test "zig fmt: block in slice expression" {
11761096}
11771097
11781098test "zig fmt: async function" {
1179 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1180
11811099 try testCanonical(
11821100 \\pub const Server = struct {
11831101 \\ handleRequestFn: fn (*Server, *const std.net.Address, File) callconv(.Async) void,
......@@ -1190,8 +1108,6 @@ test "zig fmt: async function" {
11901108}
11911109
11921110test "zig fmt: whitespace fixes" {
1193 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1194
11951111 try testTransform("test \"\" {\r\n\tconst hi = x;\r\n}\n// zig fmt: off\ntest \"\"{\r\n\tconst a = b;}\r\n",
11961112 \\test "" {
11971113 \\ const hi = x;
......@@ -1204,8 +1120,6 @@ test "zig fmt: whitespace fixes" {
12041120}
12051121
12061122test "zig fmt: while else err prong with no block" {
1207 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1208
12091123 try testCanonical(
12101124 \\test "" {
12111125 \\ const result = while (returnError()) |value| {
......@@ -1235,8 +1149,6 @@ test "zig fmt: tagged union with enum values" {
12351149}
12361150
12371151test "zig fmt: tagged union enum tag last token" {
1238 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1239
12401152 try testCanonical(
12411153 \\test {
12421154 \\ const U = union(enum(u32)) {};
......@@ -1572,8 +1484,6 @@ test "zig fmt: doc and line comment following 'zig fmt: on'" {
15721484}
15731485
15741486test "zig fmt: 'zig fmt: (off|on)' works in the middle of code" {
1575 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1576
15771487 try testTransform(
15781488 \\test "" {
15791489 \\ const x = 42;
......@@ -1600,8 +1510,6 @@ test "zig fmt: 'zig fmt: (off|on)' works in the middle of code" {
16001510}
16011511
16021512test "zig fmt: 'zig fmt: on' indentation is unchanged" {
1603 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1604
16051513 try testCanonical(
16061514 \\fn initOptionsAndLayouts(output: *Output, context: *Context) !void {
16071515 \\ // zig fmt: off
......@@ -1644,8 +1552,6 @@ test "zig fmt: spaces around slice operator" {
16441552}
16451553
16461554test "zig fmt: async call in if condition" {
1647 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1648
16491555 try testCanonical(
16501556 \\comptime {
16511557 \\ if (async b()) {
......@@ -1657,8 +1563,6 @@ test "zig fmt: async call in if condition" {
16571563}
16581564
16591565test "zig fmt: 2nd arg multiline string" {
1660 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1661
16621566 try testCanonical(
16631567 \\comptime {
16641568 \\ cases.addAsm("hello world linux x86_64",
......@@ -1687,8 +1591,6 @@ test "zig fmt: 2nd arg multiline string" {
16871591}
16881592
16891593test "zig fmt: 2nd arg multiline string many args" {
1690 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1691
16921594 try testCanonical(
16931595 \\comptime {
16941596 \\ cases.addAsm("hello world linux x86_64",
......@@ -1700,8 +1602,6 @@ test "zig fmt: 2nd arg multiline string many args" {
17001602}
17011603
17021604test "zig fmt: final arg multiline string" {
1703 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1704
17051605 try testCanonical(
17061606 \\comptime {
17071607 \\ cases.addAsm("hello world linux x86_64", "Hello, world!\n",
......@@ -1713,8 +1613,6 @@ test "zig fmt: final arg multiline string" {
17131613}
17141614
17151615test "zig fmt: if condition wraps" {
1716 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1717
17181616 try testTransform(
17191617 \\comptime {
17201618 \\ if (cond and
......@@ -1796,8 +1694,6 @@ test "zig fmt: if condition wraps" {
17961694}
17971695
17981696test "zig fmt: if condition has line break but must not wrap" {
1799 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1800
18011697 try testCanonical(
18021698 \\comptime {
18031699 \\ if (self.user_input_options.put(
......@@ -1822,8 +1718,6 @@ test "zig fmt: if condition has line break but must not wrap" {
18221718}
18231719
18241720test "zig fmt: if condition has line break but must not wrap (no fn call comma)" {
1825 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1826
18271721 try testCanonical(
18281722 \\comptime {
18291723 \\ if (self.user_input_options.put(name, UserInputOption{
......@@ -1845,8 +1739,6 @@ test "zig fmt: if condition has line break but must not wrap (no fn call comma)"
18451739}
18461740
18471741test "zig fmt: function call with multiline argument" {
1848 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1849
18501742 try testCanonical(
18511743 \\comptime {
18521744 \\ self.user_input_options.put(name, UserInputOption{
......@@ -1859,8 +1751,6 @@ test "zig fmt: function call with multiline argument" {
18591751}
18601752
18611753test "zig fmt: if-else with comment before else" {
1862 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1863
18641754 try testCanonical(
18651755 \\comptime {
18661756 \\ // cexp(finite|nan +- i inf|nan) = nan + i nan
......@@ -1879,8 +1769,6 @@ test "zig fmt: if-else with comment before else" {
18791769}
18801770
18811771test "zig fmt: if nested" {
1882 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1883
18841772 try testCanonical(
18851773 \\pub fn foo() void {
18861774 \\ return if ((aInt & bInt) >= 0)
......@@ -1904,8 +1792,6 @@ test "zig fmt: if nested" {
19041792}
19051793
19061794test "zig fmt: respect line breaks in if-else" {
1907 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1908
19091795 try testCanonical(
19101796 \\comptime {
19111797 \\ return if (cond) a else b;
......@@ -1925,8 +1811,6 @@ test "zig fmt: respect line breaks in if-else" {
19251811}
19261812
19271813test "zig fmt: respect line breaks after infix operators" {
1928 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1929
19301814 try testCanonical(
19311815 \\comptime {
19321816 \\ self.crc =
......@@ -1990,8 +1874,6 @@ test "zig fmt: switch comment after prong" {
19901874}
19911875
19921876test "zig fmt: struct literal no trailing comma" {
1993 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1994
19951877 try testTransform(
19961878 \\const a = foo{ .x = 1, .y = 2 };
19971879 \\const a = foo{ .x = 1,
......@@ -2010,8 +1892,6 @@ test "zig fmt: struct literal no trailing comma" {
20101892}
20111893
20121894test "zig fmt: struct literal containing a multiline expression" {
2013 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2014
20151895 try testTransform(
20161896 \\const a = A{ .x = if (f1()) 10 else 20 };
20171897 \\const a = A{ .x = if (f1()) 10 else 20, };
......@@ -2201,8 +2081,6 @@ test "zig fmt: array literal vertical column alignment" {
22012081}
22022082
22032083test "zig fmt: multiline string with backslash at end of line" {
2204 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2205
22062084 try testCanonical(
22072085 \\comptime {
22082086 \\ err(
......@@ -2234,8 +2112,6 @@ test "zig fmt: multiline string parameter in fn call with trailing comma" {
22342112}
22352113
22362114test "zig fmt: trailing comma on fn call" {
2237 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2238
22392115 try testCanonical(
22402116 \\comptime {
22412117 \\ var module = try Module.create(
......@@ -2249,8 +2125,6 @@ test "zig fmt: trailing comma on fn call" {
22492125}
22502126
22512127test "zig fmt: multi line arguments without last comma" {
2252 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2253
22542128 try testTransform(
22552129 \\pub fn foo(
22562130 \\ a: usize,
......@@ -2312,8 +2186,6 @@ test "zig fmt: extra newlines at the end" {
23122186}
23132187
23142188test "zig fmt: simple asm" {
2315 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2316
23172189 try testTransform(
23182190 \\comptime {
23192191 \\ asm volatile (
......@@ -2351,8 +2223,6 @@ test "zig fmt: simple asm" {
23512223}
23522224
23532225test "zig fmt: nested struct literal with one item" {
2354 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2355
23562226 try testCanonical(
23572227 \\const a = foo{
23582228 \\ .item = bar{ .a = b },
......@@ -2439,8 +2309,6 @@ test "zig fmt: line comment after doc comment" {
24392309}
24402310
24412311test "zig fmt: bit field alignment" {
2442 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2443
24442312 try testCanonical(
24452313 \\test {
24462314 \\ assert(@TypeOf(&blah.b) == *align(1:3:6) const u3);
......@@ -2472,8 +2340,6 @@ test "zig fmt: float literal with exponent" {
24722340}
24732341
24742342test "zig fmt: if-else end of comptime" {
2475 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2476
24772343 try testCanonical(
24782344 \\comptime {
24792345 \\ if (a) {
......@@ -2487,8 +2353,6 @@ test "zig fmt: if-else end of comptime" {
24872353}
24882354
24892355test "zig fmt: nested blocks" {
2490 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2491
24922356 try testCanonical(
24932357 \\comptime {
24942358 \\ {
......@@ -2504,8 +2368,6 @@ test "zig fmt: nested blocks" {
25042368}
25052369
25062370test "zig fmt: block with same line comment after end brace" {
2507 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2508
25092371 try testCanonical(
25102372 \\comptime {
25112373 \\ {
......@@ -2517,8 +2379,6 @@ test "zig fmt: block with same line comment after end brace" {
25172379}
25182380
25192381test "zig fmt: statements with comment between" {
2520 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2521
25222382 try testCanonical(
25232383 \\comptime {
25242384 \\ a = b;
......@@ -2530,8 +2390,6 @@ test "zig fmt: statements with comment between" {
25302390}
25312391
25322392test "zig fmt: statements with empty line between" {
2533 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2534
25352393 try testCanonical(
25362394 \\comptime {
25372395 \\ a = b;
......@@ -2551,8 +2409,6 @@ test "zig fmt: ptr deref operator and unwrap optional operator" {
25512409}
25522410
25532411test "zig fmt: comment after if before another if" {
2554 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2555
25562412 try testCanonical(
25572413 \\test "aoeu" {
25582414 \\ // comment
......@@ -2575,8 +2431,6 @@ test "zig fmt: comment after if before another if" {
25752431}
25762432
25772433test "zig fmt: line comment between if block and else keyword" {
2578 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2579
25802434 try testCanonical(
25812435 \\test "aoeu" {
25822436 \\ // cexp(finite|nan +- i inf|nan) = nan + i nan
......@@ -2598,8 +2452,6 @@ test "zig fmt: line comment between if block and else keyword" {
25982452}
25992453
26002454test "zig fmt: same line comments in expression" {
2601 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2602
26032455 try testCanonical(
26042456 \\test "aoeu" {
26052457 \\ const x = ( // a
......@@ -2640,8 +2492,6 @@ test "zig fmt: add comma on last switch prong" {
26402492}
26412493
26422494test "zig fmt: same-line comment after a statement" {
2643 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2644
26452495 try testCanonical(
26462496 \\test "" {
26472497 \\ a = b;
......@@ -2687,8 +2537,6 @@ test "zig fmt: same-line comment after switch prong" {
26872537}
26882538
26892539test "zig fmt: same-line comment after non-block if expression" {
2690 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2691
26922540 try testCanonical(
26932541 \\comptime {
26942542 \\ if (sr > n_uword_bits - 1) // d > r
......@@ -2699,8 +2547,6 @@ test "zig fmt: same-line comment after non-block if expression" {
26992547}
27002548
27012549test "zig fmt: same-line comment on comptime expression" {
2702 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2703
27042550 try testCanonical(
27052551 \\test "" {
27062552 \\ comptime assert(@typeInfo(T) == .Int); // must pass an integer to absInt
......@@ -2710,8 +2556,6 @@ test "zig fmt: same-line comment on comptime expression" {
27102556}
27112557
27122558test "zig fmt: switch with empty body" {
2713 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2714
27152559 try testCanonical(
27162560 \\test "" {
27172561 \\ foo() catch |err| switch (err) {};
......@@ -2721,8 +2565,6 @@ test "zig fmt: switch with empty body" {
27212565}
27222566
27232567test "zig fmt: line comments in struct initializer" {
2724 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2725
27262568 try testCanonical(
27272569 \\fn foo() void {
27282570 \\ return Self{
......@@ -2745,8 +2587,6 @@ test "zig fmt: line comments in struct initializer" {
27452587}
27462588
27472589test "zig fmt: first line comment in struct initializer" {
2748 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2749
27502590 try testCanonical(
27512591 \\pub fn acquire(self: *Self) HeldLock {
27522592 \\ return HeldLock{
......@@ -2815,8 +2655,6 @@ test "zig fmt: union(enum(u32)) with assigned enum values" {
28152655}
28162656
28172657test "zig fmt: resume from suspend block" {
2818 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2819
28202658 try testCanonical(
28212659 \\fn foo() void {
28222660 \\ suspend {
......@@ -2902,8 +2740,6 @@ test "zig fmt: comments before global variables" {
29022740}
29032741
29042742test "zig fmt: comments in statements" {
2905 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2906
29072743 try testCanonical(
29082744 \\test "std" {
29092745 \\ // statement comment
......@@ -2931,8 +2767,6 @@ test "zig fmt: comments before test decl" {
29312767}
29322768
29332769test "zig fmt: preserve spacing" {
2934 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2935
29362770 try testCanonical(
29372771 \\const std = @import("std");
29382772 \\
......@@ -3001,8 +2835,6 @@ test "zig fmt: alignment" {
30012835}
30022836
30032837test "zig fmt: C main" {
3004 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3005
30062838 try testCanonical(
30072839 \\fn main(argc: c_int, argv: **u8) c_int {
30082840 \\ const a = b;
......@@ -3012,8 +2844,6 @@ test "zig fmt: C main" {
30122844}
30132845
30142846test "zig fmt: return" {
3015 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3016
30172847 try testCanonical(
30182848 \\fn foo(argc: c_int, argv: **u8) c_int {
30192849 \\ return 0;
......@@ -3076,8 +2906,6 @@ test "zig fmt: slice attributes" {
30762906}
30772907
30782908test "zig fmt: test declaration" {
3079 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3080
30812909 try testCanonical(
30822910 \\test "test name" {
30832911 \\ const a = 1;
......@@ -3088,8 +2916,6 @@ test "zig fmt: test declaration" {
30882916}
30892917
30902918test "zig fmt: infix operators" {
3091 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3092
30932919 try testCanonical(
30942920 \\test {
30952921 \\ var i = undefined;
......@@ -3142,8 +2968,6 @@ test "zig fmt: infix operators" {
31422968}
31432969
31442970test "zig fmt: precedence" {
3145 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3146
31472971 try testCanonical(
31482972 \\test "precedence" {
31492973 \\ a!b();
......@@ -3176,8 +3000,6 @@ test "zig fmt: precedence" {
31763000}
31773001
31783002test "zig fmt: prefix operators" {
3179 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3180
31813003 try testCanonical(
31823004 \\test "prefix operators" {
31833005 \\ try return --%~!&0;
......@@ -3187,8 +3009,6 @@ test "zig fmt: prefix operators" {
31873009}
31883010
31893011test "zig fmt: call expression" {
3190 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3191
31923012 try testCanonical(
31933013 \\test "test calls" {
31943014 \\ a();
......@@ -3208,8 +3028,6 @@ test "zig fmt: anytype type" {
32083028}
32093029
32103030test "zig fmt: functions" {
3211 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3212
32133031 try testCanonical(
32143032 \\extern fn puts(s: *const u8) c_int;
32153033 \\extern "c" fn puts(s: *const u8) c_int;
......@@ -3234,8 +3052,6 @@ test "zig fmt: functions" {
32343052}
32353053
32363054test "zig fmt: multiline string" {
3237 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3238
32393055 try testCanonical(
32403056 \\test "" {
32413057 \\ const s1 =
......@@ -3254,8 +3070,6 @@ test "zig fmt: multiline string" {
32543070}
32553071
32563072test "zig fmt: values" {
3257 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3258
32593073 try testCanonical(
32603074 \\test "values" {
32613075 \\ 1;
......@@ -3275,8 +3089,6 @@ test "zig fmt: values" {
32753089}
32763090
32773091test "zig fmt: indexing" {
3278 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3279
32803092 try testCanonical(
32813093 \\test "test index" {
32823094 \\ a[0];
......@@ -3297,8 +3109,6 @@ test "zig fmt: indexing" {
32973109}
32983110
32993111test "zig fmt: struct declaration" {
3300 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3301
33023112 try testCanonical(
33033113 \\const S = struct {
33043114 \\ const Self = @This();
......@@ -3405,8 +3215,6 @@ test "zig fmt: union declaration" {
34053215}
34063216
34073217test "zig fmt: arrays" {
3408 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3409
34103218 try testCanonical(
34113219 \\test "test array" {
34123220 \\ const a: [2]u8 = [2]u8{
......@@ -3425,8 +3233,6 @@ test "zig fmt: arrays" {
34253233}
34263234
34273235test "zig fmt: container initializers" {
3428 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3429
34303236 try testCanonical(
34313237 \\const a0 = []u8{};
34323238 \\const a1 = []u8{1};
......@@ -3447,8 +3253,6 @@ test "zig fmt: container initializers" {
34473253}
34483254
34493255test "zig fmt: catch" {
3450 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3451
34523256 try testCanonical(
34533257 \\test "catch" {
34543258 \\ const a: anyerror!u8 = 0;
......@@ -3464,8 +3268,6 @@ test "zig fmt: catch" {
34643268}
34653269
34663270test "zig fmt: blocks" {
3467 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3468
34693271 try testCanonical(
34703272 \\test "blocks" {
34713273 \\ {
......@@ -3488,8 +3290,6 @@ test "zig fmt: blocks" {
34883290}
34893291
34903292test "zig fmt: switch" {
3491 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3492
34933293 try testCanonical(
34943294 \\test "switch" {
34953295 \\ switch (0) {
......@@ -3545,8 +3345,6 @@ test "zig fmt: switch" {
35453345}
35463346
35473347test "zig fmt: switch multiline string" {
3548 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3549
35503348 try testCanonical(
35513349 \\test "switch multiline string" {
35523350 \\ const x: u32 = 0;
......@@ -3578,8 +3376,6 @@ test "zig fmt: switch multiline string" {
35783376}
35793377
35803378test "zig fmt: while" {
3581 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3582
35833379 try testCanonical(
35843380 \\test "while" {
35853381 \\ while (10 < 1) unreachable;
......@@ -3655,8 +3451,6 @@ test "zig fmt: while" {
36553451}
36563452
36573453test "zig fmt: for" {
3658 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3659
36603454 try testCanonical(
36613455 \\test "for" {
36623456 \\ for (a) |v| {
......@@ -3758,8 +3552,6 @@ test "zig fmt: for" {
37583552}
37593553
37603554test "zig fmt: for if" {
3761 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3762
37633555 try testCanonical(
37643556 \\test {
37653557 \\ for (a) |x| if (x) f(x);
......@@ -3785,8 +3577,6 @@ test "zig fmt: for if" {
37853577}
37863578
37873579test "zig fmt: if for" {
3788 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3789
37903580 try testCanonical(
37913581 \\test {
37923582 \\ if (a) for (x) |x| f(x);
......@@ -3812,8 +3602,6 @@ test "zig fmt: if for" {
38123602}
38133603
38143604test "zig fmt: while if" {
3815 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3816
38173605 try testCanonical(
38183606 \\test {
38193607 \\ while (a) if (x) f(x);
......@@ -3839,8 +3627,6 @@ test "zig fmt: while if" {
38393627}
38403628
38413629test "zig fmt: if while" {
3842 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3843
38443630 try testCanonical(
38453631 \\test {
38463632 \\ if (a) while (x) : (cont) f(x);
......@@ -3866,8 +3652,6 @@ test "zig fmt: if while" {
38663652}
38673653
38683654test "zig fmt: while for" {
3869 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3870
38713655 try testCanonical(
38723656 \\test {
38733657 \\ while (a) for (x) |x| f(x);
......@@ -3893,8 +3677,6 @@ test "zig fmt: while for" {
38933677}
38943678
38953679test "zig fmt: for while" {
3896 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3897
38983680 try testCanonical(
38993681 \\test {
39003682 \\ for (a) |a| while (x) |x| f(x);
......@@ -3920,8 +3702,6 @@ test "zig fmt: for while" {
39203702}
39213703
39223704test "zig fmt: if" {
3923 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3924
39253705 try testCanonical(
39263706 \\test "if" {
39273707 \\ if (10 < 0) {
......@@ -3971,8 +3751,6 @@ test "zig fmt: if" {
39713751}
39723752
39733753test "zig fmt: fix single statement if/for/while line breaks" {
3974 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3975
39763754 try testTransform(
39773755 \\test {
39783756 \\ if (cond) a
......@@ -4051,8 +3829,6 @@ test "zig fmt: anon struct/array literal in if" {
40513829}
40523830
40533831test "zig fmt: defer" {
4054 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4055
40563832 try testCanonical(
40573833 \\test "defer" {
40583834 \\ var i: usize = 0;
......@@ -4073,8 +3849,6 @@ test "zig fmt: defer" {
40733849}
40743850
40753851test "zig fmt: comptime" {
4076 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4077
40783852 try testCanonical(
40793853 \\fn a() u8 {
40803854 \\ return 5;
......@@ -4114,8 +3888,6 @@ test "zig fmt: comptime" {
41143888}
41153889
41163890test "zig fmt: fn type" {
4117 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4118
41193891 try testCanonical(
41203892 \\fn a(i: u8) u8 {
41213893 \\ return i + 1;
......@@ -4129,8 +3901,6 @@ test "zig fmt: fn type" {
41293901}
41303902
41313903test "zig fmt: inline asm" {
4132 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4133
41343904 try testCanonical(
41353905 \\pub fn syscall1(number: usize, arg1: usize) usize {
41363906 \\ return asm volatile ("syscall"
......@@ -4145,8 +3915,6 @@ test "zig fmt: inline asm" {
41453915}
41463916
41473917test "zig fmt: async functions" {
4148 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4149
41503918 try testCanonical(
41513919 \\fn simpleAsyncFn() void {
41523920 \\ const a = async a.b();
......@@ -4175,8 +3943,6 @@ test "zig fmt: nosuspend" {
41753943}
41763944
41773945test "zig fmt: Block after if" {
4178 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4179
41803946 try testCanonical(
41813947 \\test {
41823948 \\ if (true) {
......@@ -4208,8 +3974,6 @@ test "zig fmt: string identifier" {
42083974}
42093975
42103976test "zig fmt: error return" {
4211 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4212
42133977 try testCanonical(
42143978 \\fn err() anyerror {
42153979 \\ call();
......@@ -4220,8 +3984,6 @@ test "zig fmt: error return" {
42203984}
42213985
42223986test "zig fmt: comptime block in container" {
4223 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4224
42253987 try testCanonical(
42263988 \\pub fn container() type {
42273989 \\ return struct {
......@@ -4237,8 +3999,6 @@ test "zig fmt: comptime block in container" {
42373999}
42384000
42394001test "zig fmt: inline asm parameter alignment" {
4240 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4241
42424002 try testCanonical(
42434003 \\pub fn main() void {
42444004 \\ asm volatile (
......@@ -4277,8 +4037,6 @@ test "zig fmt: inline asm parameter alignment" {
42774037}
42784038
42794039test "zig fmt: multiline string in array" {
4280 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4281
42824040 try testCanonical(
42834041 \\const Foo = [][]const u8{
42844042 \\ \\aaa
......@@ -4304,8 +4062,6 @@ test "zig fmt: multiline string in array" {
43044062}
43054063
43064064test "zig fmt: if type expr" {
4307 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4308
43094065 try testCanonical(
43104066 \\const mycond = true;
43114067 \\pub fn foo() if (mycond) i32 else void {
......@@ -4334,8 +4090,6 @@ test "zig fmt: comment after empty comment" {
43344090}
43354091
43364092test "zig fmt: line comment in array" {
4337 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4338
43394093 try testTransform(
43404094 \\test "a" {
43414095 \\ var arr = [_]u32{
......@@ -4394,8 +4148,6 @@ test "zig fmt: comment after params" {
43944148}
43954149
43964150test "zig fmt: comment in array initializer/access" {
4397 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4398
43994151 try testCanonical(
44004152 \\test "a" {
44014153 \\ var a = x{ //aa
......@@ -4432,8 +4184,6 @@ test "zig fmt: comment in array initializer/access" {
44324184}
44334185
44344186test "zig fmt: comments at several places in struct init" {
4435 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4436
44374187 try testTransform(
44384188 \\var bar = Bar{
44394189 \\ .x = 10, // test
......@@ -4657,8 +4407,6 @@ test "zig fmt: integer literals with underscore separators" {
46574407}
46584408
46594409test "zig fmt: hex literals with underscore separators" {
4660 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4661
46624410 try testTransform(
46634411 \\pub fn orMask(a: [ 1_000 ]u64, b: [ 1_000] u64) [1_000]u64 {
46644412 \\ var c: [1_000]u64 = [1]u64{ 0xFFFF_FFFF_FFFF_FFFF}**1_000;
......@@ -4682,8 +4430,6 @@ test "zig fmt: hex literals with underscore separators" {
46824430}
46834431
46844432test "zig fmt: decimal float literals with underscore separators" {
4685 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4686
46874433 try testTransform(
46884434 \\pub fn main() void {
46894435 \\ const a:f64=(10.0e-0+(10.0e+0))+10_00.00_00e-2+20_00.00_10e+4;
......@@ -4701,8 +4447,6 @@ test "zig fmt: decimal float literals with underscore separators" {
47014447}
47024448
47034449test "zig fmt: hexadeciaml float literals with underscore separators" {
4704 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4705
47064450 try testTransform(
47074451 \\pub fn main() void {
47084452 \\ const a: f64 = (0x10.0p-0+(0x10.0p+0))+0x10_00.00_00p-8+0x00_00.00_10p+16;
......@@ -4727,8 +4471,6 @@ test "zig fmt: C var args" {
47274471}
47284472
47294473test "zig fmt: Only indent multiline string literals in function calls" {
4730 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4731
47324474 try testCanonical(
47334475 \\test "zig fmt:" {
47344476 \\ try testTransform(
......@@ -4746,8 +4488,6 @@ test "zig fmt: Only indent multiline string literals in function calls" {
47464488}
47474489
47484490test "zig fmt: Don't add extra newline after if" {
4749 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4750
47514491 try testCanonical(
47524492 \\pub fn atomicSymLink(allocator: Allocator, existing_path: []const u8, new_path: []const u8) !void {
47534493 \\ if (cwd().symLink(existing_path, new_path, .{})) {
......@@ -4759,8 +4499,6 @@ test "zig fmt: Don't add extra newline after if" {
47594499}
47604500
47614501test "zig fmt: comments in ternary ifs" {
4762 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4763
47644502 try testCanonical(
47654503 \\const x = if (true) {
47664504 \\ 1;
......@@ -4780,8 +4518,6 @@ test "zig fmt: comments in ternary ifs" {
47804518}
47814519
47824520test "zig fmt: while statement in blockless if" {
4783 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4784
47854521 try testCanonical(
47864522 \\pub fn main() void {
47874523 \\ const zoom_node = if (focused_node == layout_first)
......@@ -4831,8 +4567,6 @@ test "zig fmt: test comments in field access chain" {
48314567}
48324568
48334569test "zig fmt: allow line break before field access" {
4834 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4835
48364570 try testCanonical(
48374571 \\test {
48384572 \\ const w = foo.bar().zippy(zag).iguessthisisok();
......@@ -4908,8 +4642,6 @@ test "zig fmt: Indent comma correctly after multiline string literals in arg lis
49084642}
49094643
49104644test "zig fmt: Control flow statement as body of blockless if" {
4911 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4912
49134645 try testCanonical(
49144646 \\pub fn main() void {
49154647 \\ const zoom_node = if (focused_node == layout_first)
......@@ -4945,8 +4677,6 @@ test "zig fmt: Control flow statement as body of blockless if" {
49454677}
49464678
49474679test "zig fmt: regression test for #5722" {
4948 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4949
49504680 try testCanonical(
49514681 \\pub fn sendViewTags(self: Self) void {
49524682 \\ var it = ViewStack(View).iterator(self.output.views.first, std.math.maxInt(u32));
......@@ -5077,8 +4807,6 @@ test "zig fmt: multiline string literals should play nice with array initializer
50774807}
50784808
50794809test "zig fmt: use of comments and multiline string literals may force the parameters over multiple lines" {
5080 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5081
50824810 try testCanonical(
50834811 \\pub fn makeMemUndefined(qzz: []u8) i1 {
50844812 \\ cases.add( // fixed bug foo
......@@ -5119,8 +4847,6 @@ test "zig fmt: use of comments and multiline string literals may force the param
51194847}
51204848
51214849test "zig fmt: single argument trailing commas in @builtins()" {
5122 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5123
51244850 try testCanonical(
51254851 \\pub fn foo(qzz: []u8) i1 {
51264852 \\ @panic(
......@@ -5154,8 +4880,6 @@ test "zig fmt: trailing comma should force multiline 1 column" {
51544880}
51554881
51564882test "zig fmt: function params should align nicely" {
5157 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5158
51594883 try testCanonical(
51604884 \\pub fn foo() void {
51614885 \\ cases.addRuntimeSafety("slicing operator with sentinel",
......@@ -5212,8 +4936,6 @@ test "zig fmt: remove trailing whitespace after doc comment" {
52124936}
52134937
52144938test "zig fmt: for loop with ptr payload and index" {
5215 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5216
52174939 try testCanonical(
52184940 \\test {
52194941 \\ for (self.entries.items, 0..) |*item, i| {}
......@@ -5226,8 +4948,6 @@ test "zig fmt: for loop with ptr payload and index" {
52264948}
52274949
52284950test "zig fmt: proper indent line comment after multi-line single expr while loop" {
5229 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5230
52314951 try testCanonical(
52324952 \\test {
52334953 \\ while (a) : (b)
......@@ -5241,8 +4961,6 @@ test "zig fmt: proper indent line comment after multi-line single expr while loo
52414961}
52424962
52434963test "zig fmt: function with labeled block as return type" {
5244 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5245
52464964 try testCanonical(
52474965 \\fn foo() t: {
52484966 \\ break :t bar;
......@@ -5265,8 +4983,6 @@ test "zig fmt: extern function with missing param name" {
52654983}
52664984
52674985test "zig fmt: line comment after multiline single expr if statement with multiline string" {
5268 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5269
52704986 try testCanonical(
52714987 \\test {
52724988 \\ if (foo)
......@@ -5299,8 +5015,6 @@ test "zig fmt: line comment after multiline single expr if statement with multil
52995015}
53005016
53015017test "zig fmt: respect extra newline between fn and pub usingnamespace" {
5302 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5303
53045018 try testCanonical(
53055019 \\fn foo() void {
53065020 \\ bar();
......@@ -5425,8 +5139,6 @@ test "zig fmt: insert trailing comma if comments in array init" {
54255139}
54265140
54275141test "zig fmt: make single-line if no trailing comma" {
5428 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5429
54305142 try testTransform(
54315143 \\test "function call no trailing comma" {
54325144 \\ foo(
......@@ -5606,8 +5318,6 @@ test "zig fmt: missing const/var before local variable" {
56065318}
56075319
56085320test "zig fmt: while continue expr" {
5609 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5610
56115321 try testCanonical(
56125322 \\test {
56135323 \\ while (i > 0)
......@@ -5627,8 +5337,6 @@ test "zig fmt: while continue expr" {
56275337}
56285338
56295339test "zig fmt: canonicalize symbols (simple)" {
5630 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5631
56325340 try testTransform(
56335341 \\const val_normal: Normal = .{};
56345342 \\const @"val_unesc_me": @"UnescMe" = .{};
......@@ -5778,8 +5486,6 @@ test "zig fmt: canonicalize symbols (simple)" {
57785486
57795487// Contextually unescape when shadowing primitive types and values.
57805488test "zig fmt: canonicalize symbols (primitive types)" {
5781 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5782
57835489 try testTransform(
57845490 \\const @"anyopaque" = struct {
57855491 \\ @"u8": @"type" = true,
......@@ -5889,8 +5595,6 @@ test "zig fmt: canonicalize symbols (primitive types)" {
58895595
58905596// Never unescape names spelled like keywords.
58915597test "zig fmt: canonicalize symbols (keywords)" {
5892 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5893
58945598 try testCanonical(
58955599 \\const @"enum" = struct {
58965600 \\ @"error": @"struct" = true,
......@@ -5918,8 +5622,6 @@ test "zig fmt: canonicalize symbols (keywords)" {
59185622}
59195623
59205624test "zig fmt: no space before newline before multiline string" {
5921 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5922
59235625 try testCanonical(
59245626 \\const S = struct {
59255627 \\ text: []const u8,
......@@ -5950,8 +5652,6 @@ test "zig fmt: no space before newline before multiline string" {
59505652
59515653// Normalize \xNN and \u{NN} escapes and unicode inside @"" escapes.
59525654test "zig fmt: canonicalize symbols (character escapes)" {
5953 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5954
59555655 try testTransform(
59565656 \\const @"\x46\x6f\x6f\x64" = struct {
59575657 \\ @"\x62\x61\x72\x6E": @"\x43\x72\x61\x62" = false,
......@@ -5994,8 +5694,6 @@ test "zig fmt: canonicalize symbols (character escapes)" {
59945694}
59955695
59965696test "zig fmt: canonicalize symbols (asm)" {
5997 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
5998
59995697 try testTransform(
60005698 \\test "asm" {
60015699 \\ const @"null" = usize;
src/arch/x86_64/CodeGen.zig+1
......@@ -9553,6 +9553,7 @@ fn genBinOpMir(
95539553fn genIntMulComplexOpMir(self: *Self, dst_ty: Type, dst_mcv: MCValue, src_mcv: MCValue) InnerError!void {
95549554 const mod = self.bin_file.options.module.?;
95559555 const abi_size: u32 = @intCast(dst_ty.abiSize(mod));
9556 try self.spillEflagsIfOccupied();
95569557 switch (dst_mcv) {
95579558 .none,
95589559 .unreach,