diff options
Diffstat (limited to 'tests/extr_u32.c')
| -rw-r--r-- | tests/extr_u32.c | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/tests/extr_u32.c b/tests/extr_u32.c index 478b220..ba4c391 100644 --- a/tests/extr_u32.c +++ b/tests/extr_u32.c @@ -14,13 +14,14 @@ int main(int argc, char *argv[])  	ejit_extr_u32(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_u32 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(0xffffffff, long)) == 0xffffffff); -	assert(erf1(f, EJIT_ARG(0xfffffffff, long)) == 0xffffffff); -	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(0xffffffff, long)) == (long)0xffffffff); +	assert(erfi1(f, EJIT_ARG(0xfffffffff, long)) == (long)0xffffffff); +	assert(erfi1(f, EJIT_ARG(0xf00000000, long)) == 0);  	ejit_destroy_func(f);  } | 
