Folded inssel*.ll into select.ll.
[oota-llvm.git] / test / Makefile
1 default: testcodegen
2
3 LLC  := ../tools/Debug/llc
4 AS   := ../tools/Debug/as
5 LLCOPTS := -dsched y
6
7 TESTS := $(wildcard *.ll)
8
9 LLCTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch | grep -v sumarray )
10
11
12 test all : testasmdis testopt testcodegen
13         @echo "All tests successfully completed!"
14
15 testasmdis  : $(TESTS:%.ll=%.ll.asmdis)
16         @echo "All assembler/disassembler test succeeded!"
17
18 testopt     : $(TESTS:%.ll=%.ll.opt)
19
20 testselect  : $(LLCTESTS:%.ll=%.mc)
21
22 testsched   : $(LLCTESTS:%.ll=%.mc)
23
24 testcodegen : $(LLCTESTS:%.ll=%.mc)
25
26 clean :
27         rm -f *.[123] *.bc *.mc core
28
29 %.asmdis: %
30         @echo "Running assembler/disassembler test on $<"
31         @./TestAsmDisasm.sh $<
32
33 %.opt: %
34         @echo "Running optimizier test on $<"
35         @./TestOptimizer.sh $<
36
37 %.bc: %.ll
38         $(AS) $< -f
39
40 %.mc: %.ll $(LLC) $(AS)
41         @echo "Generating machine instructions for $<"
42         $(AS) < $< | $(LLC) $(LLCOPTS) > $@
43