aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-21 23:52:15 +0000
committerChris Lattner <sabre@nondot.org>2002-08-21 23:52:15 +0000
commit5d338349e300494cdb791a0a4e876c465184df7e (patch)
treed4a194c8c2dffde9fba3647f148256aa46761554 /test/Feature
parentf20816bc787f632d443235d32989cdba04a32eda (diff)
downloadexternal_llvm-5d338349e300494cdb791a0a4e876c465184df7e.zip
external_llvm-5d338349e300494cdb791a0a4e876c465184df7e.tar.gz
external_llvm-5d338349e300494cdb791a0a4e876c465184df7e.tar.bz2
Test the C backend on all of the feature tests as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Feature/Makefile b/test/Feature/Makefile
index c7f585d..8453c84 100644
--- a/test/Feature/Makefile
+++ b/test/Feature/Makefile
@@ -13,7 +13,7 @@ include ../Makefile.tests
TESTS := $(wildcard *.ll)
OTESTS := $(addprefix Output/, $(TESTS)) # Tests in output directory
-test all :: testasmdis testopt testsparc
+test all :: testasmdis testopt testcbe testsparc
@echo "All tests completed!"
testasmdis : $(addsuffix .asmdis, $(OTESTS))
@@ -21,6 +21,7 @@ testopt : $(addsuffix .opt , $(OTESTS))
testcodegen : $(OTESTS:%.ll=%.mc)
testsparc : $(OTESTS:%.ll=%.s)
+testcbe : $(OTESTS:%.ll=%.tc)
Output/%.asmdis: % $(LAS) $(LDIS) Output/.dir
@./TestAsmDisasm.sh $< $(TOOLDEBUG) $(LIBDEBUG)
@@ -28,6 +29,11 @@ Output/%.asmdis: % $(LAS) $(LDIS) Output/.dir
Output/%.opt: % $(LAS) $(LDIS) $(LOPT) Output/.dir
@./TestOptimizer.sh $< $(TOOLDEBUG) $(LIBDEBUG)
+Output/%.tc: Output/%.bc $(LDIS)
+ @echo "======== Generating C code for $<"
+ $(LDIS) -c < $< > $@ || \
+ ( rm -f $@; $(FAILURE) $@ )
+
Output/%.mc: Output/%.bc $(LLC)
@echo "======== Generating machine instructions for $<"
$(LLC) -f $(LLCFLAGS) $< > $@ || \