diff options
Diffstat (limited to 'tests/eqr_f.c')
-rw-r--r-- | tests/eqr_f.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/eqr_f.c b/tests/eqr_f.c index 7afe002..e11397b 100644 --- a/tests/eqr_f.c +++ b/tests/eqr_f.c @@ -5,7 +5,7 @@ int main() { struct ejit_operand operands[2] = { - EJIT_OPERAND_FPR(0, EJIT_TYPE(double)) + EJIT_OPERAND_FPR(0, EJIT_TYPE(double)), EJIT_OPERAND_FPR(1, EJIT_TYPE(double)) }; @@ -16,17 +16,17 @@ int main() ejit_select_compile_func(f, 1, 2, EJIT_USE64(long), do_jit); - assert(ejit_run_func_2(f, EJIT_ARG(1, double), + assert(ejit_run_func_2(f, + EJIT_ARG(1, double), EJIT_ARG(1, double)) == 1); - assert(ejit_run_func_2(f, EJIT_ARG(1, double), - EJIT_ARG(0, double)) == 0); assert(ejit_run_func_2(f, - EJIT_ARG(0x7fffffffffffffff, double), - EJIT_ARG(0x7ffffffffffffff0, double)) == 0); + EJIT_ARG(1, double), + EJIT_ARG(0, double)) == 0); assert(ejit_run_func_2(f, - EJIT_ARG(0x6fffffffffffffff, double), - EJIT_ARG(0x7fffffffffffffff, double)) == 0); + EJIT_ARG(0.0/0.0, double), + EJIT_ARG(0.0/0.0, double)) == 0); + ejit_destroy_func(f); } |