aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/yarpgen
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-03-28 16:29:34 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-03-28 16:29:34 +0100
commit5e84a1aea751e8c4c46a2899a2901bb59a1f049b (patch)
tree2bf1a4fd8ba97b1e079a181e1fab27233c27d611 /test/monniaux/yarpgen
parent69247e1024f99f628f9b00eb9ecc30ef30e51d3f (diff)
downloadcompcert-kvx-5e84a1aea751e8c4c46a2899a2901bb59a1f049b.tar.gz
compcert-kvx-5e84a1aea751e8c4c46a2899a2901bb59a1f049b.zip
run yarpgen correctly on arm
Diffstat (limited to 'test/monniaux/yarpgen')
-rw-r--r--test/monniaux/yarpgen/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/monniaux/yarpgen/Makefile b/test/monniaux/yarpgen/Makefile
index dbd6ae75..339d6808 100644
--- a/test/monniaux/yarpgen/Makefile
+++ b/test/monniaux/yarpgen/Makefile
@@ -10,6 +10,11 @@ YARPGEN=./yarpgen
GENERATOR=yarpgen
endif
+ifdef BITS
+YARPGEN+=-m $(BITS)
+CFLAGS+=-m$(BITS)
+endif
+
MAX=129
PREFIX=ran%06.f
@@ -49,13 +54,16 @@ tests_s: $(TESTS_CCOMP_TARGET_S)
$(CC) $(CFLAGS) -S -o $@ $<
%.target.o : %.target.s
- $(TARGET_CC) -c -o $@ $<
+ $(TARGET_CC) $(CFLAGS) -c -o $@ $<
+
+%.host.o : %.host.s
+ $(CC) $(CFLAGS) -c -o $@ $<
%.target.out : %.target
- $(EXECUTE) $< > $@
+ $(EXECUTE) $< | tee $@
%.host.out : %.host
- ./$< > $@
+ ./$< | tee $@
ran%/func.ccomp.target.s ran%/func.gcc.target.s ran%/func.ccomp.host.s ran%/func.gcc.host.s ran%/init.gcc.host.s : ran%/init.h