aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-11 18:38:25 +0000
committerChris Lattner <sabre@nondot.org>2003-05-11 18:38:25 +0000
commitfb311eb7757fbb6f8a6440148eb6124ef4ea5632 (patch)
treee7b999a29937b5d827160f05cb1de593573f53fd /test/LLC
parent6e51bfa2ea01eaa4ece0b4ea9955a2fd719f85ea (diff)
downloadexternal_llvm-fb311eb7757fbb6f8a6440148eb6124ef4ea5632.zip
external_llvm-fb311eb7757fbb6f8a6440148eb6124ef4ea5632.tar.gz
external_llvm-fb311eb7757fbb6f8a6440148eb6124ef4ea5632.tar.bz2
Allow llx tests as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLC')
-rw-r--r--test/LLC/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/LLC/Makefile b/test/LLC/Makefile
index 4fb94ef..3c07cd0 100644
--- a/test/LLC/Makefile
+++ b/test/LLC/Makefile
@@ -7,11 +7,16 @@ include $(LEVEL)/test/Makefile.tests
# Only .ll tests here. C tests are run via Makefile.singlesrc above.
#
-TESTS := $(wildcard *.ll)
+LL_TESTS := $(wildcard *.ll)
+LLX_TESTS := $(wildcard *.llx)
-all:: $(addprefix Output/, $(filter-out %.c, $(TESTS:%.ll=%.ts)))
+all:: $(addprefix Output/, $(LL_TESTS:%.ll=%.ts))
+all:: $(addprefix Output/, $(LLX_TESTS:%.llx=%.llx.out))
Output/%.ts: Output/%.bc $(LLC) Output/.dir
@echo "======== Compiling $< =========="
$(LLC) -f $< -o $@ || \
( rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LLC)
+ -$(TESTRUNR) $<