mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Added support for testing instruction selection on all but 2 tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6445837e9
commit
35fc0b172e
@ -1,5 +1,7 @@
|
|||||||
TESTS := $(wildcard *.ll)
|
TESTS := $(wildcard *.ll)
|
||||||
|
|
||||||
|
SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch")
|
||||||
|
|
||||||
test all : testasmdis testopt
|
test all : testasmdis testopt
|
||||||
@echo "All tests successfully completed!"
|
@echo "All tests successfully completed!"
|
||||||
|
|
||||||
@ -8,8 +10,10 @@ testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
|||||||
|
|
||||||
testopt : $(TESTS:%.ll=%.ll.opt)
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
||||||
|
|
||||||
|
testselect : $(SELECTTESTS:%.ll=%.mc)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f *.[123] *.bc core
|
rm -f *.[123] *.bc *.mc core
|
||||||
|
|
||||||
%.asmdis: %
|
%.asmdis: %
|
||||||
@echo "Running assembler/disassembler test on $<"
|
@echo "Running assembler/disassembler test on $<"
|
||||||
@ -18,3 +22,11 @@ clean :
|
|||||||
%.opt: %
|
%.opt: %
|
||||||
@echo "Running optimizier test on $<"
|
@echo "Running optimizier test on $<"
|
||||||
@./TestOptimizer.sh $<
|
@./TestOptimizer.sh $<
|
||||||
|
|
||||||
|
%.bc: %.ll
|
||||||
|
rm -f $@
|
||||||
|
as $<
|
||||||
|
|
||||||
|
%.mc: %.bc
|
||||||
|
@echo "Generating machine instructions for $<"
|
||||||
|
@llc -dselect i $< > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user