New testcase distilled from mutt
[oota-llvm.git] / test / Jello / Makefile
index e9c15a7b4eeeadd649f7b38a7e6e36222342fb00..408f80af3c1e8e24268e41ede0a8a687dd7f7629 100644 (file)
@@ -1,6 +1,6 @@
 #                    test/Regression/Jello/Makefile
 #
-# This directory contains regression tests for the LLVM jello program.  
+# This directory contains regression tests for the LLVM x86 JIT  
 #
 LEVEL = ../../..
 include $(LEVEL)/test/Makefile.tests
@@ -10,9 +10,15 @@ FTESTS := $(wildcard *.llx)   # Freeform tests
 
 all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
 
-Output/%.out: Output/%.bc $(LJELLO)
+LLI_FLAGS = -force-interpreter=false
+
+ifdef DISABLE_FP_ELIM
+LLI_FLAGS += -disable-fp-elim
+endif
+
+Output/%.out: Output/%.bc $(LLI)
        @echo "======== Running $< ==================="
-       $(VERB) jello $< > $@ 2>&1 || \
+       $(VERB) $(LLI) $(LLI_FLAGS) -stats $< > $@ 2>&1 || \
                  ( cat $@; rm -f $@; $(FAILURE) $@ )