diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-29 20:11:34 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-29 20:11:34 +0300 |
commit | 9fe8ccf4ae09018fdde01a9d83f9db10ad354221 (patch) | |
tree | 664f802240a2810b5db3e783400351f1eb51c1a0 /tests/beqr.c | |
parent | 322c7fba3d2f4c9b5b0d78b44feefd38ae44d017 (diff) | |
download | ejit-9fe8ccf4ae09018fdde01a9d83f9db10ad354221.tar.gz ejit-9fe8ccf4ae09018fdde01a9d83f9db10ad354221.zip |
work through branching instructions
Diffstat (limited to 'tests/beqr.c')
-rw-r--r-- | tests/beqr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/beqr.c b/tests/beqr.c index 109b48c..9fc74a6 100644 --- a/tests/beqr.c +++ b/tests/beqr.c @@ -20,12 +20,12 @@ int main() ejit_select_compile_func(f, 2, 0, EJIT_USE64(long), do_jit); - assert(ejit_run_func_2(f, EJIT_ARG(0, long), EJIT_ARG(0, long)) == 1); - assert(ejit_run_func_2(f, EJIT_ARG(0, long), EJIT_ARG(1, long)) == 0); - assert(ejit_run_func_2(f, EJIT_ARG(1, long), EJIT_ARG(0, long)) == 0); - assert(ejit_run_func_2(f, EJIT_ARG(-1, long), EJIT_ARG(0, long)) == 0); - assert(ejit_run_func_2(f, EJIT_ARG(0, long), EJIT_ARG(-1, long)) == 0); - assert(ejit_run_func_2(f, EJIT_ARG(1, long), EJIT_ARG(1, long)) == 1); + assert(ejit_run_func_2(f, EJIT_ARG( 0, long), EJIT_ARG( 0, long)) == 1); + assert(ejit_run_func_2(f, EJIT_ARG( 0, long), EJIT_ARG( 1, long)) == 0); + assert(ejit_run_func_2(f, EJIT_ARG( 1, long), EJIT_ARG( 0, long)) == 0); + assert(ejit_run_func_2(f, EJIT_ARG(-1, long), EJIT_ARG( 0, long)) == 0); + assert(ejit_run_func_2(f, EJIT_ARG( 0, long), EJIT_ARG(-1, long)) == 0); + assert(ejit_run_func_2(f, EJIT_ARG( 1, long), EJIT_ARG( 1, long)) == 1); ejit_destroy_func(f); } |