aboutsummaryrefslogtreecommitdiff
path: root/tests/ldxr_i64.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ldxr_i64.c')
-rw-r--r--tests/ldxr_i64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ldxr_i64.c b/tests/ldxr_i64.c
index 71b56a4..9551fce 100644
--- a/tests/ldxr_i64.c
+++ b/tests/ldxr_i64.c
@@ -13,15 +13,15 @@ int main(int argc, char *argv[])
EJIT_OPERAND_GPR(1, EJIT_TYPE(unsigned))
};
- struct ejit_func *f = ejit_create_func(EJIT_TYPE(long), 2, operands);
+ struct ejit_func *f = ejit_create_func(EJIT_TYPE(int64_t), 2, operands);
ejit_ldxr_i64(f, EJIT_GPR(0), EJIT_GPR(0), EJIT_GPR(1));
ejit_retr(f, EJIT_GPR(0));
ejit_select_compile_func(f, 2, 0, true, do_jit);
- assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(0, unsigned)) == -1);
- assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0);
- assert(erf2(f, EJIT_ARG(data, void *),
+ assert(erfl2(f, EJIT_ARG(data, void *), EJIT_ARG(0, unsigned)) == -1);
+ assert(erfl2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0);
+ assert(erfl2(f, EJIT_ARG(data, void *),
EJIT_ARG(16, unsigned)) == (int64_t)data[2]);
ejit_destroy_func(f);