From 15310fc90dc6ab2ba52603027eebe8aa5a606a27 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 24 Apr 2025 20:37:36 +0300 Subject: add some tests to increase coverage --- tests/blti_u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/blti_u.c') diff --git a/tests/blti_u.c b/tests/blti_u.c index 3e4ed27..52d3b2c 100644 --- a/tests/blti_u.c +++ b/tests/blti_u.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) }; struct ejit_func *f = ejit_create_func(EJIT_TYPE(long), 1, operands); - struct ejit_reloc r = ejit_blti_u(f, EJIT_GPR(0), 0); + struct ejit_reloc r = ejit_blti_u(f, EJIT_GPR(0), 1); ejit_reti(f, 0); struct ejit_label l = ejit_label(f); @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) ejit_select_compile_func(f, 1, 0, EJIT_USE64(long), do_jit, true); - assert(erfi1(f, EJIT_ARG( 0, long)) == 0); + assert(erfi1(f, EJIT_ARG( 0, long)) == 1); assert(erfi1(f, EJIT_ARG( 1, long)) == 0); assert(erfi1(f, EJIT_ARG(-1, long)) == 0); -- cgit v1.2.3