aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Feature/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Feature/Makefile b/test/Feature/Makefile
index c7f585de98..8453c84c10 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) $< > $@ || \