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/ldi_u64.c | |
parent | 57f6b41047e95374701ee276248f0f8615168450 (diff) | |
download | ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.tar.gz ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.zip |
start supporting 32bit arches
Diffstat (limited to 'tests/ldi_u64.c')
-rw-r--r-- | tests/ldi_u64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ldi_u64.c b/tests/ldi_u64.c index 8dfb110..0e6787e 100644 --- a/tests/ldi_u64.c +++ b/tests/ldi_u64.c @@ -8,14 +8,14 @@ int main(int argc, char *argv[]) bool do_jit = argc > 1; static uint64_t data[] = { 0x12345678ffffffff, 0x00000000, 0x42424242 }; - struct ejit_func *f = ejit_create_func(EJIT_TYPE(unsigned long), 0, + struct ejit_func *f = ejit_create_func(EJIT_TYPE(uint64_t), 0, NULL); ejit_ldi_u64(f, EJIT_GPR(0), data); ejit_retr(f, EJIT_GPR(0)); ejit_select_compile_func(f, 1, 0, true, do_jit); - assert(ejit_run_func(f, 0, NULL) == (int64_t)data[0]); + assert(ejit_run_func_l(f, 0, NULL) == (int64_t)data[0]); ejit_destroy_func(f); } |