llvm-6502/test/Makefile
Vikram S. Adve cf8a5f899b Had used the wrong option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339 91177308-0d34-0410-b5e6-96231b3b80d8
2001-07-31 21:52:28 +00:00

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 y $< > $@