new testcase
[oota-llvm.git] / test / Makefile
index d922ddf175d980419617bf0638b855229af54e6f..e34ac128391904b5137c065eeaf48127dba21357 100644 (file)
@@ -1,59 +1,4 @@
-LLC  := ../tools/Debug/llc
-AS   := ../tools/Debug/as
-LLCOPTS := -dsched y
-ARCHFLAGS = ## -xarch=v9
-
-CC = /opt/SUNWspro/bin/cc
-CCFLAGS = -g $(ARCHFLAGS)
-## CC = gcc
-## CCFLAGS = -g $(ARCHFLAGS) ## -mcpu=v9
-
-TESTS := $(wildcard *.ll)
-
-LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx.ll | grep -v select.ll )
-
-
-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)
-
-testsparc   : $(LLCTESTS:%.ll=%.s)
-
-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) > $@
-
-%.s: %.ll $(LLC) $(AS)
-       $(AS) < $<  | $(LLC) > $@
-
-## %.o: %.s %.ll
-##     /usr/ccs/bin/as $(ARCHFLAGS) $<
-
-
-%.o: %.s
-       $(CC) -c $(CCFLAGS) $<
+LEVEL  = ..
+DIRS   = Feature Regression Programs
+include Makefile.tests