From eb09800cff9eec8ecbe756b193cab738d43897d2 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 29 Jun 2024 14:43:39 +0300 Subject: clear up some semantics --- tests/absr_f.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/absr_f.c') 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); } -- cgit v1.2.3