X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FMakefile;h=eec753644ce1d1b8609ac3615471bf0878564674;hb=38c42725fe9ad6f50cd45e32a408e5fda370971c;hp=80871361a002186dec1453d44ae2e9677300e006;hpb=919b59a148a9cb863ccff3adfa2cc5160968b08d;p=oota-llvm.git diff --git a/test/Makefile b/test/Makefile index 80871361a00..eec753644ce 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,63 +1,5 @@ -LLC := ../tools/Debug/llc -AS := ../tools/Debug/as -LLCOPTS := -dsched y -ARCHFLAGS = - -CC = /opt/SUNWspro/bin/cc -CCFLAGS = -g -xarch=v9 -## CC = gcc -## CCFLAGS = -g -xarch=v9 ## -mcpu=v9 - -TESTS := $(wildcard *.ll) - -LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory ) - - -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 *.s 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) $< - -%: %.o - $(CC) -o $@ $(CCFLAGS) $< - +LEVEL = .. +DIRS = Feature Libraries Regression Programs +include ../Makefile.common +include Makefile.tests