Add capability to turn on the -no-fp-elim option

llvm-svn: 5161
This commit is contained in:
Chris Lattner 2002-12-28 20:01:23 +00:00
parent 12fff8aea2
commit 4927f155d6
1 changed files with 7 additions and 1 deletions

View File

@ -10,9 +10,15 @@ FTESTS := $(wildcard *.llx) # Freeform tests
all:: $(addprefix Output/, $(TESTS:%.ll=%.out)) all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
LLI_FLAGS = -force-interpreter=false
ifdef DISABLE_FP_ELIM
LLI_FLAGS += -no-fp-elim
endif
Output/%.out: Output/%.bc $(LLI) Output/%.out: Output/%.bc $(LLI)
@echo "======== Running $< ===================" @echo "======== Running $< ==================="
$(VERB) $(LLI) -force-interpreter=false -stats $< > $@ 2>&1 || \ $(VERB) $(LLI) $(LLI_FLAGS) -stats $< > $@ 2>&1 || \
( cat $@; rm -f $@; $(FAILURE) $@ ) ( cat $@; rm -f $@; $(FAILURE) $@ )