[llvm-commits] CVS: llvm/test/Programs/TEST.nightly.Makefile

Chris Lattner lattner at cs.uiuc.edu
Thu Dec 18 21:36:02 PST 2003


Changes in directory llvm/test/Programs:

TEST.nightly.Makefile updated: 1.25 -> 1.26

---
Log message:

add linear scan tests if ENABLE_LINEARSCAN is defined


---
Diffs of the changes:  (+24 -1)

Index: llvm/test/Programs/TEST.nightly.Makefile
diff -u llvm/test/Programs/TEST.nightly.Makefile:1.25 llvm/test/Programs/TEST.nightly.Makefile:1.26
--- llvm/test/Programs/TEST.nightly.Makefile:1.25	Sun Aug 17 23:08:47 2003
+++ llvm/test/Programs/TEST.nightly.Makefile	Thu Dec 18 21:35:27 2003
@@ -1,4 +1,4 @@
-##===- test/Programs/TEST.nightly.Makefile --*- Makefile -*-=======- vim:ft=make
+##===- test/Programs/TEST.nightly.Makefile --*- Makefile -*- vim:ft=make --===##
 #
 # This test is used in conjunction with the llvm/utils/NightlyTest* stuff to
 # generate information about program status for the nightly report.
@@ -11,8 +11,12 @@
 CFLAGS  := -O3
 
 REPORTS_TO_GEN := compile nat llc cbe jit
+ifdef ENABLE_LINEARSCAN
+REPORTS_TO_GEN += llc-ls
+endif
 REPORTS_SUFFIX := $(addsuffix .report.txt, $(REPORTS_TO_GEN))
 
+
 TIMEOPT = -time-passes -stats -info-output-file=$(CURDIR)/$@.info
 EXTRA_LLI_OPTS = $(TIMEOPT)
 
@@ -61,6 +65,25 @@
 	else  \
 	  echo "TEST-FAIL: llc $(RELDIR)/$*" >> $@;\
 	fi
+
+# LLC-linearscan tests
+$(PROGRAMS_TO_TEST:%=Output/%.nightly.llc-ls.report.txt): \
+Output/%.nightly.llc-ls.report.txt: Output/%.llvm.bc Output/%.exe-llc-ls $(LLC)
+	@echo > $@
+	-head -n 100 Output/$*.exe-llc-ls >> $@
+	@-if test -f Output/$*.exe-llc-ls; then \
+	  echo "TEST-PASS: llc-ls $(RELDIR)/$*" >> $@;\
+	  $(LLC) $< -o /dev/null -f $(TIMEOPT) >> $@ 2>&1; \
+	  printf "TEST-RESULT-llc-ls: " >> $@;\
+	  grep "Total Execution Time" $@.info >> $@;\
+	  printf "TEST-RESULT-llc-ls-time: " >> $@;\
+	  grep "^real" Output/$*.out-llc-ls.time >> $@;\
+	  echo >> $@;\
+	else  \
+	  echo "TEST-FAIL: llc-ls $(RELDIR)/$*" >> $@;\
+	fi
+
+
 
 # CBE tests
 $(PROGRAMS_TO_TEST:%=Output/%.nightly.cbe.report.txt): \





More information about the llvm-commits mailing list