Update testcases to be more modern
[oota-llvm.git] / test / LLC / Makefile
1 #                    test/Regression/LLC/Makefile
2 #
3 # This directory contains regression tests for the LLVM sparc backend.  
4 #
5 LEVEL = ../../..
6 include $(LEVEL)/test/Makefile.tests
7
8 # Only .ll tests here.  C tests are run via Makefile.singlesrc above.
9
10 LL_TESTS := $(wildcard *.ll)
11 LLX_TESTS := $(wildcard *.llx)
12
13 all:: $(addprefix Output/, $(LL_TESTS:%.ll=%.ts)) 
14 all:: $(addprefix Output/, $(LLX_TESTS:%.llx=%.llx.out))
15
16 Output/%.ts: Output/%.bc $(LLC) Output/.dir
17         @echo "======== Compiling $< =========="
18         $(LLC) -f $< -o $@ || \
19                  ( rm -f $@; $(FAILURE) $@ )
20
21 Output/%.llx.out: %.llx Output/.dir $(LLC)
22         -$(TESTRUNR) $<