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/ldxi_u32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/ldxi_u32.c') diff --git a/tests/ldxi_u32.c b/tests/ldxi_u32.c index f70b23b..bb5f12f 100644 --- a/tests/ldxi_u32.c +++ b/tests/ldxi_u32.c @@ -16,11 +16,11 @@ int main(int argc, char *argv[]) ejit_ldxi_u32(f, EJIT_GPR(0), EJIT_GPR(0), (uintptr_t)data); ejit_retr(f, EJIT_GPR(0)); - ejit_select_compile_func(f, 1, 0, EJIT_USE64(long), do_jit); + ejit_select_compile_func(f, 1, 0, true, do_jit); - assert(erf1(f, EJIT_ARG(sizeof(int32_t) * 0, long)) == 0xffffffff); - assert(erf1(f, EJIT_ARG(sizeof(int32_t) * 1, long)) == 0); - assert(erf1(f, EJIT_ARG(sizeof(int32_t) * 2, long)) == 0x42424242); + assert(erfi1(f, EJIT_ARG(sizeof(int32_t) * 0, long)) == (long)0xffffffff); + assert(erfi1(f, EJIT_ARG(sizeof(int32_t) * 1, long)) == 0); + assert(erfi1(f, EJIT_ARG(sizeof(int32_t) * 2, long)) == 0x42424242); ejit_destroy_func(f); } -- cgit v1.2.3