diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-14 21:08:01 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-14 21:08:01 +0200 |
commit | f5c729ea59d227a507f83bd94d07f4366b46d72b (patch) | |
tree | 70d1f242100cea09acd38a71ff8c821836117cfd /tests/ldxi_u64.c | |
parent | 57f6b41047e95374701ee276248f0f8615168450 (diff) | |
download | ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.tar.gz ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.zip |
start supporting 32bit arches
Diffstat (limited to 'tests/ldxi_u64.c')
-rw-r--r-- | tests/ldxi_u64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ldxi_u64.c b/tests/ldxi_u64.c index 1cc57fe..e440435 100644 --- a/tests/ldxi_u64.c +++ b/tests/ldxi_u64.c @@ -12,20 +12,20 @@ int main(int argc, char *argv[]) EJIT_OPERAND_GPR(0, EJIT_TYPE(long)) }; - struct ejit_func *f = ejit_create_func(EJIT_TYPE(long), 1, operands); + struct ejit_func *f = ejit_create_func(EJIT_TYPE(uint64_t), 1, operands); ejit_ldxi_u64(f, EJIT_GPR(0), EJIT_GPR(0), (uintptr_t)data); ejit_retr(f, EJIT_GPR(0)); ejit_select_compile_func(f, 1, 0, true, do_jit); - assert(erf1(f, EJIT_ARG(sizeof(int64_t) * 0, long) - ) == (int64_t)data[0]); + assert(erfl1(f,EJIT_ARG(sizeof(int64_t) * 0, long)) + == (int64_t)data[0]); - assert(erf1(f, EJIT_ARG(sizeof(int64_t) * 1, long) - ) == 0); + assert(erfl1(f, EJIT_ARG(sizeof(int64_t) * 1, long)) + == 0); - assert(erf1(f, EJIT_ARG(sizeof(int64_t) * 2, long) - ) == (int64_t)data[2]); + assert(erfl1(f, EJIT_ARG(sizeof(int64_t) * 2, long)) + == (int64_t)data[2]); ejit_destroy_func(f); } |