aboutsummaryrefslogtreecommitdiff
path: root/tests/ldi_i32.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ldi_i32.c')
-rw-r--r--tests/ldi_i32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ldi_i32.c b/tests/ldi_i32.c
index c8ecbc4..d898e44 100644
--- a/tests/ldi_i32.c
+++ b/tests/ldi_i32.c
@@ -10,12 +10,12 @@ int main(int argc, char *argv[])
struct ejit_func *f = ejit_create_func(EJIT_TYPE(unsigned long), 0,
NULL);
- ejit_ldi_u32(f, EJIT_GPR(0), data);
+ ejit_ldi_i32(f, EJIT_GPR(0), data);
ejit_retr(f, EJIT_GPR(0));
ejit_select_compile_func(f, 1, 0, false, do_jit);
- assert(ejit_run_func(f, 0, NULL) == data[0]);
+ assert(ejit_run_func_i(f, 0, NULL) == (int32_t)data[0]);
ejit_destroy_func(f);
}