mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
35fc0b172e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
660 B
Makefile
33 lines
660 B
Makefile
TESTS := $(wildcard *.ll)
|
|
|
|
SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch")
|
|
|
|
test all : testasmdis testopt
|
|
@echo "All tests successfully completed!"
|
|
|
|
testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
|
@echo "All assembler/disassembler test succeeded!"
|
|
|
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
|
|
|
testselect : $(SELECTTESTS:%.ll=%.mc)
|
|
|
|
clean :
|
|
rm -f *.[123] *.bc *.mc core
|
|
|
|
%.asmdis: %
|
|
@echo "Running assembler/disassembler test on $<"
|
|
@./TestAsmDisasm.sh $<
|
|
|
|
%.opt: %
|
|
@echo "Running optimizier test on $<"
|
|
@./TestOptimizer.sh $<
|
|
|
|
%.bc: %.ll
|
|
rm -f $@
|
|
as $<
|
|
|
|
%.mc: %.bc
|
|
@echo "Generating machine instructions for $<"
|
|
@llc -dselect i $< > $@
|