aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rw-r--r--tests/ldxr_u64.c6
2 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 67a8e0e..a649a72 100644
--- a/Makefile
+++ b/Makefile
@@ -113,6 +113,12 @@ check_linux_m68k:
QEMU_LD_PREFIX=/usr/m68k-linux-gnu \
$(MAKE) ARCH=m68k CROSS_COMPILE=m68k-linux-gnu- check
+.PHONY: check_linux_sh4
+check_linux_sh4:
+ $(MAKE) clean
+ QEMU_LD_PREFIX=/usr/sh4-linux-gnu \
+ $(MAKE) ARCH=sh4 CROSS_COMPILE=sh4-linux-gnu- check
+
.PHONY: check_linux
check_linux:
$(MAKE) check_linux_amd64
@@ -130,10 +136,10 @@ check_linux:
$(MAKE) check_linux_alpha
$(MAKE) check_linux_hppa
$(MAKE) check_linux_m68k
+ $(MAKE) check_linux_sh4
# compiler+emulator not available or broken
#$(MAKE) check_linux_hppa64
#$(MAKE) check_linux_arc
- #$(MAKE) check_linux_sh4
.DEFAULT: setup
$(MAKE) -f scripts/makefile $<
@@ -144,7 +150,7 @@ setup:
@./scripts/gen-deps -p EJIT -c COMPILE_EJIT -b ejit "$(EJIT_SOURCES)"
CLEANUP := build deps.mk tests.md libejit.a examples/fib examples/loop \
- examples/*.d tests/test-*
+ examples/*.d tests/test-* coverage
CLEANUP_CMD :=
EJIT_SOURCES :=
diff --git a/tests/ldxr_u64.c b/tests/ldxr_u64.c
index 3ad3c28..1f6de3b 100644
--- a/tests/ldxr_u64.c
+++ b/tests/ldxr_u64.c
@@ -19,10 +19,10 @@ int main(int argc, char *argv[])
ejit_select_compile_func(f, 2, 0, true, do_jit, true);
- assert(erfi2(f, EJIT_ARG(data, void *),
+ assert(erfl2(f, EJIT_ARG(data, void *),
EJIT_ARG(0, unsigned)) == (int64_t)0xffffffffffffffff);
- assert(erfi2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0);
- assert(erfi2(f, EJIT_ARG(data, void *),
+ assert(erfl2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0);
+ assert(erfl2(f, EJIT_ARG(data, void *),
EJIT_ARG(16, unsigned)) == 0x4242424212345678);
ejit_destroy_func(f);