Fix problem executing the CBE
[oota-llvm.git] / test / Makefile
index 516780f5b31ee25d6704925c4609a4a71ef00cb0..415a05a8179c7ef896c3dd44a544538beec77401 100644 (file)
@@ -1,41 +1,5 @@
-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) > $@
+LEVEL  = ..
+DIRS   = Feature Regression Programs
+include ../Makefile.common
+include Makefile.tests