diff options
Diffstat (limited to 'tests/ldxi_i64.c')
-rw-r--r-- | tests/ldxi_i64.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ldxi_i64.c b/tests/ldxi_i64.c index fd2266b..d9c78d1 100644 --- a/tests/ldxi_i64.c +++ b/tests/ldxi_i64.c @@ -12,16 +12,15 @@ 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(int64_t), 1, operands); ejit_ldxi_i64(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)) == -1); - assert(erf1(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) * 0, long)) == -1); + assert(erfl1(f, EJIT_ARG(sizeof(int64_t) * 1, long)) == 0); + assert(erfl1(f, EJIT_ARG(sizeof(int64_t) * 2, long)) == (int64_t)data[2]); ejit_destroy_func(f); } |