aboutsummaryrefslogtreecommitdiff
path: root/tests/divr_u64.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 16:15:37 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 16:16:25 +0300
commitcf2459d4cab72e3e0072fdf76ca2f5d8f9593f78 (patch)
tree7a0cd9342047cd2a308d08c6def7bb91e2e83805 /tests/divr_u64.c
parentdcca95ebeef7ad047b437c7e65bcd2d33784cae4 (diff)
downloadejit-cf2459d4cab72e3e0072fdf76ca2f5d8f9593f78.tar.gz
ejit-cf2459d4cab72e3e0072fdf76ca2f5d8f9593f78.zip
jit tests pass (kind of) on x86_64
Diffstat (limited to 'tests/divr_u64.c')
-rw-r--r--tests/divr_u64.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/divr_u64.c b/tests/divr_u64.c
index c97c0b1..8753066 100644
--- a/tests/divr_u64.c
+++ b/tests/divr_u64.c
@@ -18,30 +18,30 @@ int main(int argc, char *argv[])
ejit_select_compile_func(f, 2, 0, EJIT_USE64(long), do_jit);
assert(erf2(f, EJIT_ARG(0x7fffffff, long), EJIT_ARG(1, long)
- ) == 0x7fffffff);
+ ) == 0x7fffffff);
assert(erf2(f, EJIT_ARG(0x80000000, long), EJIT_ARG(1, long)
- ) == 0x80000000);
+ ) == 0x80000000);
assert(erf2(f, EJIT_ARG(0x7fffffff, long), EJIT_ARG(2, long)
- ) == 0x3fffffff);
+ ) == 0x3fffffff);
assert(erf2(f, EJIT_ARG(0x80000000, long), EJIT_ARG(2, long)
- ) == 0x40000000);
+ ) == 0x40000000);
assert(erf2(f, EJIT_ARG(0x7fffffff, long), EJIT_ARG(0x80000000, long)
- ) == 0);
+ ) == 0);
assert(erf2(f, EJIT_ARG(0x80000000, long), EJIT_ARG(0x7fffffff, long)
- ) == 1);
+ ) == 1);
assert(erf2(f, EJIT_ARG(0x7fffffff, long), EJIT_ARG(0xffffffff, long)
- ) == 0);
+ ) == 0);
assert(erf2(f, EJIT_ARG(0xffffffff, long), EJIT_ARG(0x7fffffff, long)
- ) == 2);
+ ) == 2);
assert(erf2(f, EJIT_ARG(0xffffffff, long), EJIT_ARG(0xffffffff, long)
- ) == 1);
+ ) == 1);
assert(erf2(f, EJIT_ARG(1, long), EJIT_ARG(0x7fffffff, long)) == 0);
assert(erf2(f, EJIT_ARG(1, long), EJIT_ARG(0x80000000, long)) == 0);
@@ -49,28 +49,28 @@ int main(int argc, char *argv[])
assert(erf2(f, EJIT_ARG(2, long), EJIT_ARG(0x80000000, long)) == 0);
assert(erf2(f, EJIT_ARG(0, long), EJIT_ARG(0x7fffffff, long)) == 0);
assert(erf2(f, EJIT_ARG(0x7fffffffffffffff, long), EJIT_ARG(1, long)
- ) == 0x7fffffffffffffff);
+ ) == 0x7fffffffffffffff);
assert(erf2(f, EJIT_ARG(0x8000000000000000, long), EJIT_ARG(1, long)
- ) == (int64_t)0x8000000000000000);
+ ) == (int64_t)0x8000000000000000);
assert(erf2(f, EJIT_ARG(0x7fffffffffffffff, long), EJIT_ARG(2, long)
- ) == 0x3fffffffffffffff);
+ ) == 0x3fffffffffffffff);
assert(erf2(f, EJIT_ARG(0x8000000000000000, long), EJIT_ARG(2, long)
- ) == 0x4000000000000000);
+ ) == 0x4000000000000000);
assert(erf2(f, EJIT_ARG(1, long), EJIT_ARG(0x7fffffffffffffff, long)
- ) == 0);
+ ) == 0);
assert(erf2(f, EJIT_ARG(1, long), EJIT_ARG(0x8000000000000000, long)
- ) == 0);
+ ) == 0);
assert(erf2(f, EJIT_ARG(2, long), EJIT_ARG(0x7fffffffffffffff, long)
- ) == 0);
+ ) == 0);
assert(erf2(f, EJIT_ARG(2, long), EJIT_ARG(0x8000000000000000, long)
- ) == 0);
+ ) == 0);
assert(erf2(f,
EJIT_ARG(0x7fffffffffffffff, long),