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

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jun 25 03:05:08 PDT 2004


Changes in directory reopt/test:

TEST.reopt.Makefile updated: 1.17 -> 1.18

---
Log message:

Move libsupport after libtransformutils.
Add special support for spec tests, with the llc-train dir.


---
Diffs of the changes:  (+10 -5)

Index: reopt/test/TEST.reopt.Makefile
diff -u reopt/test/TEST.reopt.Makefile:1.17 reopt/test/TEST.reopt.Makefile:1.18
--- reopt/test/TEST.reopt.Makefile:1.17	Wed Jun  9 15:26:16 2004
+++ reopt/test/TEST.reopt.Makefile	Fri Jun 25 03:04:03 2004
@@ -40,9 +40,9 @@
 
 # Library archive files that contain common LLVM code the Reoptimizer depends on
 REOPTIMIZER_LLVMLIBS = $(DESTLIBCURRENT)/libsparcv9regalloc.a \
-    $(DESTLIBCURRENT)/libsupport.a $(DESTLIBCURRENT)/libtarget.a \
+    $(DESTLIBCURRENT)/libtarget.a \
     $(DESTLIBCURRENT)/libscalaropts.a $(DESTLIBCURRENT)/libtransformutils.a \
-    $(DESTLIBCURRENT)/libanalysis.a
+    $(DESTLIBCURRENT)/libanalysis.a $(DESTLIBCURRENT)/libsupport.a 
 
 # Solaris libraries that the Reoptimizer depends on
 REOPTIMIZER_SOLARISLIBS = -lcpc -lm -lrt -lmalloc -ldl
@@ -86,13 +86,18 @@
 	$(CXX) $(CFLAGS) $< -o $@ $(REOPTIMIZER_LDADD)
 
 # 3. Run the reoptimized version.
+ifdef SPECTEST
+$(PROGRAMS_TO_TEST:%=Output/%.out-reopt-llc): \
+Output/%.out-reopt-llc: Output/%.reopt-llc
+	@echo "===== Running Reoptimizer version of $(TESTNAME) ====="
+	-cd Output/llc-train && ../../$< $(RUN_OPTIONS) < $(STDIN_FILENAME) \
+       > ../../$@
+else
 $(PROGRAMS_TO_TEST:%=Output/%.out-reopt-llc): \
 Output/%.out-reopt-llc: Output/%.reopt-llc
 	@echo "===== Running Reoptimizer version of $(TESTNAME) ====="
-#	-$(RUNSAFELY) $(STDIN_FILENAME) $@ $< $(RUN_OPTIONS)
-# Reoptimizer currently runs so slowly in debug mode with
-# --enable-trace-opt that you can't effectively use time limits.
 	-$< $(RUN_OPTIONS) < $(STDIN_FILENAME) > $@
+endif
 
 # 4. Diff it against the plain old llc version
 $(PROGRAMS_TO_TEST:%=Output/%.diff-reopt-llc): \





More information about the llvm-commits mailing list