aboutsummaryrefslogtreecommitdiff
path: root/tests/extr_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extr_32.c')
-rw-r--r--tests/extr_32.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/extr_32.c b/tests/extr_32.c
index 3ade35e..673e7aa 100644
--- a/tests/extr_32.c
+++ b/tests/extr_32.c
@@ -14,14 +14,15 @@ int main(int argc, char *argv[])
ejit_extr_32(f, EJIT_GPR(0), EJIT_GPR(1));
ejit_retr(f, EJIT_GPR(0));
- ejit_select_compile_func(f, 2, 0, EJIT_USE64(long), do_jit);
+ /* true since extr_32 only exists on 64bit arches */
+ ejit_select_compile_func(f, 2, 0, true, do_jit);
- assert(erf1(f, EJIT_ARG(0, long)) == 0);
- assert(erf1(f, EJIT_ARG(1, long)) == 1);
- assert(erf1(f, EJIT_ARG(0xfffffff, long)) == 0xfffffff);
- assert(erf1(f, EJIT_ARG(0xffffffff, long)) == -1);
- assert(erf1(f, EJIT_ARG(0xfffffffff, long)) == -1);
- assert(erf1(f, EJIT_ARG(0xf00000000, long)) == 0);
+ assert(erfi1(f, EJIT_ARG(0, long)) == 0);
+ assert(erfi1(f, EJIT_ARG(1, long)) == 1);
+ assert(erfi1(f, EJIT_ARG(0xfffffff, long)) == 0xfffffff);
+ assert(erfi1(f, EJIT_ARG(0xffffffff, long)) == -1);
+ assert(erfi1(f, EJIT_ARG(0xfffffffff, long)) == -1);
+ assert(erfi1(f, EJIT_ARG(0xf00000000, long)) == 0);
ejit_destroy_func(f);
}