1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Makefile
Vikram S. Adve 6744f75d62 Had used the wrong option.
llvm-svn: 339
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 $< > $@