mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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
This commit is contained in:
parent
f20816bc78
commit
5d338349e3
@ -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) $< > $@ || \
|
||||
|
Loading…
Reference in New Issue
Block a user