New testcase
[oota-llvm.git] / test / Jello / Makefile
1 #                    test/Regression/Jello/Makefile
2 #
3 # This directory contains regression tests for the LLVM x86 JIT  
4 #
5 LEVEL = ../../..
6 include $(LEVEL)/test/Makefile.tests
7
8 TESTS := $(wildcard *.ll)
9 FTESTS := $(wildcard *.llx)   # Freeform tests
10
11 all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
12
13 LLI_FLAGS = -force-interpreter=false
14
15 ifdef DISABLE_FP_ELIM
16 LLI_FLAGS += -disable-fp-elim
17 endif
18
19 Output/%.out: Output/%.bc $(LLI)
20         @echo "======== Running $< ==================="
21         $(VERB) $(LLI) $(LLI_FLAGS) -stats $< > $@ 2>&1 || \
22                  ( cat $@; rm -f $@; $(FAILURE) $@ )
23
24
25 all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
26
27 Output/%.llx.out: %.llx Output/.dir $(LJELLO)
28         -$(TESTRUNR) $<
29