diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-21 23:52:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-21 23:52:15 +0000 |
commit | 5d338349e300494cdb791a0a4e876c465184df7e (patch) | |
tree | d4a194c8c2dffde9fba3647f148256aa46761554 /test/Feature | |
parent | f20816bc787f632d443235d32989cdba04a32eda (diff) | |
download | external_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/Makefile | 8 |
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) $< > $@ || \ |