From e4a92c4029231b376c64c16dfefd5d6a6e9ba855 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 31 Jul 2001 21:45:56 +0000 Subject: [PATCH] Added support for testing instruction selection on all but 2 tests. llvm-svn: 333 --- test/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index de6ac40c5e0..d5c8a7272f3 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,7 @@ TESTS := $(wildcard *.ll) +SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch") + test all : testasmdis testopt @echo "All tests successfully completed!" @@ -8,8 +10,10 @@ testasmdis : $(TESTS:%.ll=%.ll.asmdis) testopt : $(TESTS:%.ll=%.ll.opt) +testselect : $(SELECTTESTS:%.ll=%.mc) + clean : - rm -f *.[123] *.bc core + rm -f *.[123] *.bc *.mc core %.asmdis: % @echo "Running assembler/disassembler test on $<" @@ -18,3 +22,11 @@ clean : %.opt: % @echo "Running optimizier test on $<" @./TestOptimizer.sh $< + +%.bc: %.ll + rm -f $@ + as $< + +%.mc: %.bc + @echo "Generating machine instructions for $<" + @llc -dselect i $< > $@