From 451797936119d8236843c4e9aee4a47dc5cddd56 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 30 Jun 2024 00:53:34 +0300 Subject: continue working through test cases + Remove overflow and more complicated floating point tests for now --- tests/eqr_f.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/eqr_f.c') 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); } -- cgit v1.2.3