diff --git a/ir_main.c b/ir_main.c index 06f80aa..4c864c0 100644 --- a/ir_main.c +++ b/ir_main.c @@ -965,7 +965,9 @@ finish: int (*func)(void) = loader.main; int ret = func(); fflush(stdout); - fprintf(stderr, "\nexit code = %d\n", ret); + if (ret) { + fprintf(stderr, "\nexit code = %d\n", ret); + } } return 0; diff --git a/tests/debug.Windows-x86_64/regset-fib.irt b/tests/debug.Windows-x86_64/regset-fib.irt index 1f34fdf..9a6d4b7 100755 --- a/tests/debug.Windows-x86_64/regset-fib.irt +++ b/tests/debug.Windows-x86_64/regset-fib.irt @@ -126,5 +126,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug.Windows-x86_64/regset-fib2.irt b/tests/debug.Windows-x86_64/regset-fib2.irt index 4da7a99..47a3200 100755 --- a/tests/debug.Windows-x86_64/regset-fib2.irt +++ b/tests/debug.Windows-x86_64/regset-fib2.irt @@ -151,5 +151,3 @@ main: 4181 6765 6765 - -exit code = 0 diff --git a/tests/debug.Windows-x86_64/regset-fibi.irt b/tests/debug.Windows-x86_64/regset-fibi.irt index ba1c839..cd8685b 100755 --- a/tests/debug.Windows-x86_64/regset-fibi.irt +++ b/tests/debug.Windows-x86_64/regset-fibi.irt @@ -112,5 +112,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug.aarch64/regset-fib.irt b/tests/debug.aarch64/regset-fib.irt index 8bcf9ae..79fe8c3 100644 --- a/tests/debug.aarch64/regset-fib.irt +++ b/tests/debug.aarch64/regset-fib.irt @@ -126,5 +126,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug.aarch64/regset-fib2.irt b/tests/debug.aarch64/regset-fib2.irt index 3f94ea3..8b01655 100644 --- a/tests/debug.aarch64/regset-fib2.irt +++ b/tests/debug.aarch64/regset-fib2.irt @@ -148,5 +148,3 @@ main: 4181 6765 6765 - -exit code = 0 diff --git a/tests/debug.aarch64/regset-fibi.irt b/tests/debug.aarch64/regset-fibi.irt index 4ace0da..e7f40d6 100644 --- a/tests/debug.aarch64/regset-fibi.irt +++ b/tests/debug.aarch64/regset-fibi.irt @@ -111,5 +111,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug.x86/regset-fib.irt b/tests/debug.x86/regset-fib.irt index 061a43d..efc29a4 100644 --- a/tests/debug.x86/regset-fib.irt +++ b/tests/debug.x86/regset-fib.irt @@ -123,5 +123,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug.x86/regset-fib2.irt b/tests/debug.x86/regset-fib2.irt index 5eee222..b39e7e8 100644 --- a/tests/debug.x86/regset-fib2.irt +++ b/tests/debug.x86/regset-fib2.irt @@ -147,5 +147,3 @@ main: 4181 6765 6765 - -exit code = 0 diff --git a/tests/debug.x86/regset-fibi.irt b/tests/debug.x86/regset-fibi.irt index 383af98..508e376 100644 --- a/tests/debug.x86/regset-fibi.irt +++ b/tests/debug.x86/regset-fibi.irt @@ -109,5 +109,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug/regset-fib.irt b/tests/debug/regset-fib.irt index 37be2a9..861ec9e 100644 --- a/tests/debug/regset-fib.irt +++ b/tests/debug/regset-fib.irt @@ -126,5 +126,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/debug/regset-fib2.irt b/tests/debug/regset-fib2.irt index 2360980..a06739b 100644 --- a/tests/debug/regset-fib2.irt +++ b/tests/debug/regset-fib2.irt @@ -150,5 +150,3 @@ main: 4181 6765 6765 - -exit code = 0 diff --git a/tests/debug/regset-fibi.irt b/tests/debug/regset-fibi.irt index 95fee54..ea70779 100644 --- a/tests/debug/regset-fibi.irt +++ b/tests/debug/regset-fibi.irt @@ -113,5 +113,3 @@ main: 2584 4181 6765 - -exit code = 0 diff --git a/tests/fibi_min.irt b/tests/fibi_min.irt index c338804..503cb21 100644 --- a/tests/fibi_min.irt +++ b/tests/fibi_min.irt @@ -49,5 +49,3 @@ FibI 100 100 100 - -exit code = 0 diff --git a/tests/run/fcmp_001.irt b/tests/run/fcmp_001.irt index d42bebe..9d358ec 100644 --- a/tests/run/fcmp_001.irt +++ b/tests/run/fcmp_001.irt @@ -877,5 +877,3 @@ lt: 01110_00110_00010_00000_00000 ult: 01111_00111_00011_00001_11111 le: 11110_01110_00110_00010_00000 ule: 11111_01111_00111_00011_11111 - -exit code = 0 diff --git a/tests/run/fcmp_002.irt b/tests/run/fcmp_002.irt index d4ad1ac..392c5db 100644 --- a/tests/run/fcmp_002.irt +++ b/tests/run/fcmp_002.irt @@ -901,5 +901,3 @@ lt: 02220_00220_00020_00000_00000 ult: 02222_00222_00022_00002_22222 le: 22220_02220_00220_00020_00000 ule: 22222_02222_00222_00022_22222 - -exit code = 0 diff --git a/tests/run/fcmp_003.irt b/tests/run/fcmp_003.irt index f9e9274..b32832d 100644 --- a/tests/run/fcmp_003.irt +++ b/tests/run/fcmp_003.irt @@ -3109,5 +3109,3 @@ lt: 03330_00330_00030_00000_00000 ult: 03333_00333_00033_00003_33333 le: 33330_03330_00330_00030_00000 ule: 33333_03333_00333_00033_33333 - -exit code = 0 diff --git a/tests/run/fcmp_004.irt b/tests/run/fcmp_004.irt index f55dc04..fa2fe89 100644 --- a/tests/run/fcmp_004.irt +++ b/tests/run/fcmp_004.irt @@ -3109,5 +3109,3 @@ lt: 30003_33003_33303_33333_33333 ult: 30000_33000_33300_33330_00000 le: 00003_30003_33003_33303_33333 ule: 00000_30000_33000_33300_00000 - -exit code = 0