From 5d338349e300494cdb791a0a4e876c465184df7e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 21 Aug 2002 23:52:15 +0000 Subject: 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 --- test/Feature/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/Feature') 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) $< > $@ || \ -- cgit v1.1