authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-14 23:26:03+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-14 23:26:03+07:00
logc07213269fe14235d75d8d768984e329cdfcb4fe
treef51b903a373bfdf794837af403d1f2691c116919
parente791f062ba3bbae62175076a2b04c06099c9397a

stage2: zig fmt


3 files changed, 5 insertions(+), 6 deletions(-)

lib/std/start.zig+1-1
...@@ -170,7 +170,7 @@ fn exit2(code: usize) noreturn {...@@ -170,7 +170,7 @@ fn exit2(code: usize) noreturn {
170 asm volatile ("ta 0x6d"170 asm volatile ("ta 0x6d"
171 :171 :
172 : [number] "{g1}" (1),172 : [number] "{g1}" (1),
173 [arg1] "{o0}" (code)173 [arg1] "{o0}" (code),
174 : "o0", "o1", "o2", "o3", "o4", "o5", "o6", "o7", "memory"174 : "o0", "o1", "o2", "o3", "o4", "o5", "o6", "o7", "memory"
175 );175 );
176 },176 },
src/arch/riscv64/Mir.zig-1
...@@ -144,4 +144,3 @@ pub fn extraData(mir: Mir, comptime T: type, index: usize) struct { data: T, end...@@ -144,4 +144,3 @@ pub fn extraData(mir: Mir, comptime T: type, index: usize) struct { data: T, end
144 .end = i,144 .end = i,
145 };145 };
146}146}
147
test/stage2/x86_64.zig+4-4
...@@ -719,7 +719,7 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -719,7 +719,7 @@ pub fn addCases(ctx: *TestContext) !void {
719 );719 );
720 switch (target.getOsTag()) {720 switch (target.getOsTag()) {
721 .linux => try case.files.append(.{721 .linux => try case.files.append(.{
722 .src =722 .src =
723 \\pub fn print() void {723 \\pub fn print() void {
724 \\ asm volatile ("syscall"724 \\ asm volatile ("syscall"
725 \\ :725 \\ :
...@@ -735,7 +735,7 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -735,7 +735,7 @@ pub fn addCases(ctx: *TestContext) !void {
735 .path = "print.zig",735 .path = "print.zig",
736 }),736 }),
737 .macos => try case.files.append(.{737 .macos => try case.files.append(.{
738 .src =738 .src =
739 \\extern "c" fn write(usize, usize, usize) usize;739 \\extern "c" fn write(usize, usize, usize) usize;
740 \\740 \\
741 \\pub fn print() void {741 \\pub fn print() void {
...@@ -796,7 +796,7 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -796,7 +796,7 @@ pub fn addCases(ctx: *TestContext) !void {
796 );796 );
797 switch (target.getOsTag()) {797 switch (target.getOsTag()) {
798 .linux => try case.files.append(.{798 .linux => try case.files.append(.{
799 .src =799 .src =
800 \\// dummy comment to make print be on line 2800 \\// dummy comment to make print be on line 2
801 \\fn print() void {801 \\fn print() void {
802 \\ asm volatile ("syscall"802 \\ asm volatile ("syscall"
...@@ -813,7 +813,7 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -813,7 +813,7 @@ pub fn addCases(ctx: *TestContext) !void {
813 .path = "print.zig",813 .path = "print.zig",
814 }),814 }),
815 .macos => try case.files.append(.{815 .macos => try case.files.append(.{
816 .src =816 .src =
817 \\extern "c" fn write(usize, usize, usize) usize;817 \\extern "c" fn write(usize, usize, usize) usize;
818 \\fn print() void {818 \\fn print() void {
819 \\ _ = write(1, @ptrToInt("Hello, World!\n"), 14);819 \\ _ = write(1, @ptrToInt("Hello, World!\n"), 14);