From f5c729ea59d227a507f83bd94d07f4366b46d72b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 14 Mar 2025 21:08:01 +0200 Subject: start supporting 32bit arches --- tests/extr_32.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tests/extr_32.c') diff --git a/tests/extr_32.c b/tests/extr_32.c index 3ade35e..673e7aa 100644 --- a/tests/extr_32.c +++ b/tests/extr_32.c @@ -14,14 +14,15 @@ int main(int argc, char *argv[]) ejit_extr_32(f, EJIT_GPR(0), EJIT_GPR(1)); ejit_retr(f, EJIT_GPR(0)); - ejit_select_compile_func(f, 2, 0, EJIT_USE64(long), do_jit); + /* true since extr_32 only exists on 64bit arches */ + ejit_select_compile_func(f, 2, 0, true, do_jit); - assert(erf1(f, EJIT_ARG(0, long)) == 0); - assert(erf1(f, EJIT_ARG(1, long)) == 1); - assert(erf1(f, EJIT_ARG(0xfffffff, long)) == 0xfffffff); - assert(erf1(f, EJIT_ARG(0xffffffff, long)) == -1); - assert(erf1(f, EJIT_ARG(0xfffffffff, long)) == -1); - assert(erf1(f, EJIT_ARG(0xf00000000, long)) == 0); + assert(erfi1(f, EJIT_ARG(0, long)) == 0); + assert(erfi1(f, EJIT_ARG(1, long)) == 1); + assert(erfi1(f, EJIT_ARG(0xfffffff, long)) == 0xfffffff); + assert(erfi1(f, EJIT_ARG(0xffffffff, long)) == -1); + assert(erfi1(f, EJIT_ARG(0xfffffffff, long)) == -1); + assert(erfi1(f, EJIT_ARG(0xf00000000, long)) == 0); ejit_destroy_func(f); } -- cgit v1.2.3