blob: a62db0e130e5fde1f5b4b37e94b31782eeb63f2f [file] [log] [blame]
Vikram S. Adve38b86202001-11-05 00:22:16 +00001LEVEL = ..
Vikram S. Adve5b7d0bf2001-08-28 23:26:44 +00002
Chris Lattner00950542001-06-06 20:29:01 +00003TESTS := $(wildcard *.ll)
4
Vikram S. Adve919b59a2001-10-22 22:33:08 +00005LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory )
Vikram S. Adve35fc0b12001-07-31 21:45:56 +00006
Vikram S. Adve5b7d0bf2001-08-28 23:26:44 +00007
8test all : testasmdis testopt testcodegen
Chris Lattner00950542001-06-06 20:29:01 +00009 @echo "All tests successfully completed!"
10
Vikram S. Adve5b7d0bf2001-08-28 23:26:44 +000011testasmdis : $(TESTS:%.ll=%.ll.asmdis)
Chris Lattner00950542001-06-06 20:29:01 +000012 @echo "All assembler/disassembler test succeeded!"
13
Vikram S. Adve5b7d0bf2001-08-28 23:26:44 +000014testopt : $(TESTS:%.ll=%.ll.opt)
Chris Lattner00950542001-06-06 20:29:01 +000015
Vikram S. Adve5b7d0bf2001-08-28 23:26:44 +000016testselect : $(LLCTESTS:%.ll=%.mc)
17
18testsched : $(LLCTESTS:%.ll=%.mc)
19
20testcodegen : $(LLCTESTS:%.ll=%.mc)
Vikram S. Adve35fc0b12001-07-31 21:45:56 +000021
Vikram S. Adve5a28f062001-10-10 20:10:48 +000022testsparc : $(LLCTESTS:%.ll=%.s)
23
Chris Lattner00950542001-06-06 20:29:01 +000024%.asmdis: %
25 @echo "Running assembler/disassembler test on $<"
26 @./TestAsmDisasm.sh $<
27
28%.opt: %
29 @echo "Running optimizier test on $<"
30 @./TestOptimizer.sh $<
Vikram S. Adve35fc0b12001-07-31 21:45:56 +000031
Vikram S. Adve35fc0b12001-07-31 21:45:56 +000032
Vikram S. Adve4cceffe2001-11-05 00:18:30 +000033## Rules for compiling %.ll, %.bc, %.s files and
34## for building native SPARC executables.
35##
36include Makefile.target