Test the C backend on all of the feature tests as well.
authorChris Lattner <sabre@nondot.org>
Wed, 21 Aug 2002 23:52:15 +0000 (23:52 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Aug 2002 23:52:15 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3437 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/Makefile

index c7f585de9852ce2640b3308049f33e7150ac980f..8453c84c103583c0a4b503a7904c4a8c3294852a 100644 (file)
@@ -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) $< > $@ || \