From 4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 26 Aug 2023 17:13:56 +0300 Subject: apply fixes to make jit-comparison easier --- tests/check.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'tests/check.c') diff --git a/tests/check.c b/tests/check.c index 168f02f..e302aed 100644 --- a/tests/check.c +++ b/tests/check.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: copyleft-next-0.3.1 */ + #include #include @@ -15,7 +17,7 @@ static void check_li() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -34,7 +36,7 @@ static void check_li() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -51,7 +53,7 @@ static void check_li() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -68,7 +70,7 @@ static void check_li() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } } @@ -86,7 +88,7 @@ static void check_add() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -105,7 +107,7 @@ static void check_add() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -122,7 +124,7 @@ static void check_add() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } @@ -139,7 +141,7 @@ static void check_add() compile_end(&ctx); compile_finish(&ctx); - assert(run(&ctx) == i); + assert(run(&ctx, 0, 0, 0, 0) == i); compile_destroy(&ctx); } } @@ -163,7 +165,7 @@ static void check_branch() compile_finish(&ctx); - assert(run(&ctx) == (i != 0)); + assert(run(&ctx, 0, 0, 0, 0) == (i != 0)); compile_destroy(&ctx); } @@ -184,7 +186,7 @@ static void check_branch() compile_finish(&ctx); - assert(run(&ctx) == (i == 0)); + assert(run(&ctx, 0, 0, 0, 0) == (i == 0)); compile_destroy(&ctx); } } -- cgit v1.3