diff options
Diffstat (limited to 'tests/absr_f.c')
-rw-r--r-- | tests/absr_f.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/absr_f.c b/tests/absr_f.c index cc070b6..94a0e42 100644 --- a/tests/absr_f.c +++ b/tests/absr_f.c @@ -7,13 +7,14 @@ int main() struct ejit_operand operands[1] = { EJIT_OPERAND_FPR(0, EJIT_DOUBLE) }; - struct ejit_func *f = ejit_create_func(EJIT_DOUBLE, 1, operands); + 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); - assert(ejit_run_func_f_1(f, ejit_double(0.0)) == 0.0); - assert(ejit_run_func_f_1(f, ejit_double(-0.0)) == 0.0); - assert(ejit_run_func_f_1(f, ejit_double(0.5)) == 0.5); - assert(ejit_run_func_f_1(f, ejit_double(-0.5)) == 0.5); + 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); + assert(ejit_run_func_f_1(f, EJIT_ARG(0.5, double)) == 0.5); + assert(ejit_run_func_f_1(f, EJIT_ARG(-0.5, double)) == 0.5); + ejit_destroy_func(f); } |