Add capability to turn on the -no-fp-elim option
llvm-svn: 5161
This commit is contained in:
parent
12fff8aea2
commit
4927f155d6
|
@ -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) $@ )
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue