4 TESTS := $(wildcard *.ll)
6 LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory )
9 test all :: testasmdis testopt testsparc
10 @echo "All tests successfully completed!"
12 testasmdis : $(TESTS:%.ll=%.ll.asmdis)
13 @echo "All assembler/disassembler test succeeded!"
15 testopt : $(TESTS:%.ll=%.ll.opt)
17 testselect : $(LLCTESTS:%.ll=%.mc)
19 testsched : $(LLCTESTS:%.ll=%.mc)
21 testcodegen : $(LLCTESTS:%.ll=%.mc)
23 testsparc : $(LLCTESTS:%.ll=%.s)
26 @echo "Running assembler/disassembler test on $<"
27 @./TestAsmDisasm.sh $<
30 @echo "Running optimizier test on $<"
31 @./TestOptimizer.sh $<
34 ## Rules for compiling %.ll, %.bc, %.s files and
35 ## for building native SPARC executables.
37 include Makefile.tests