diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-29 14:49:30 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-29 14:49:30 +0300 |
commit | d4c1d32e0aa21677e72c54ed220fdc70cea732c8 (patch) | |
tree | 651a3c29e3e56387e8a5d87c4d0e03251e649e89 /tests | |
parent | eb09800cff9eec8ecbe756b193cab738d43897d2 (diff) | |
download | ejit-d4c1d32e0aa21677e72c54ed220fdc70cea732c8.tar.gz ejit-d4c1d32e0aa21677e72c54ed220fdc70cea732c8.zip |
add flag for using 64 bit values on 32 machines
+ JIT backends needs to still trigger an assertion if we detect that the
user lied
Diffstat (limited to 'tests')
-rw-r--r-- | tests/absr_f.c | 2 | ||||
-rw-r--r-- | tests/addi.c | 2 | ||||
-rw-r--r-- | tests/addr.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/absr_f.c b/tests/absr_f.c index 94a0e42..8d69037 100644 --- a/tests/absr_f.c +++ b/tests/absr_f.c @@ -10,7 +10,7 @@ int main() struct ejit_func *f = ejit_create_func(EJIT_TYPE(double), 1, operands); ejit_absr_f(f, EJIT_FPR(0), EJIT_FPR(0)); ejit_retr_f(f, EJIT_FPR(0)); - ejit_select_compile_func(f, 0, 1, do_jit); + ejit_select_compile_func(f, 0, 1, false, do_jit); assert(ejit_run_func_f_1(f, EJIT_ARG(0.0, double)) == 0.0); assert(ejit_run_func_f_1(f, EJIT_ARG(-0.0, double)) == 0.0); diff --git a/tests/addi.c b/tests/addi.c index e0471d6..c3c84ce 100644 --- a/tests/addi.c +++ b/tests/addi.c @@ -10,7 +10,7 @@ int main() struct ejit_func *f = ejit_create_func(EJIT_TYPE(int), 1, operands); ejit_addi(f, EJIT_GPR(0), EJIT_GPR(0), 69); ejit_retr(f, EJIT_GPR(0)); - ejit_select_compile_func(f, 1, 0, do_jit); + ejit_select_compile_func(f, 1, 0, EJIT_USE64(int), do_jit); assert(ejit_run_func_1(f, EJIT_ARG(42, int)) == 111); ejit_destroy_func(f); diff --git a/tests/addr.c b/tests/addr.c index 099536a..472030f 100644 --- a/tests/addr.c +++ b/tests/addr.c @@ -15,7 +15,7 @@ main (int argc, char *argv[]) ejit_addr(f, EJIT_GPR(0), EJIT_GPR(0), EJIT_GPR(1)); ejit_retr(f, EJIT_GPR(0)); - ejit_select_compile_func(f, 2, 0, do_jit); + ejit_select_compile_func(f, 2, 0, EJIT_USE64(long), do_jit); assert(ejit_run_func_2(f, EJIT_ARG(42, long), EJIT_ARG(69, long)) == 111); ejit_destroy_func(f); |