mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
9bf654646e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@621 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
885 B
Makefile
44 lines
885 B
Makefile
default: testcodegen
|
|
|
|
LLC := ../tools/Debug/llc
|
|
AS := ../tools/Debug/as
|
|
LLCOPTS := -dsched y
|
|
|
|
TESTS := $(wildcard *.ll)
|
|
|
|
LLCTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch | grep -v sumarray )
|
|
|
|
|
|
test all : testasmdis testopt testcodegen
|
|
@echo "All tests successfully completed!"
|
|
|
|
testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
|
@echo "All assembler/disassembler test succeeded!"
|
|
|
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
|
|
|
testselect : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
testsched : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
testcodegen : $(LLCTESTS:%.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
|
|
$(AS) $< -f
|
|
|
|
%.mc: %.ll $(LLC) $(AS)
|
|
@echo "Generating machine instructions for $<"
|
|
$(AS) < $< | $(LLC) $(LLCOPTS) > $@
|
|
|