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

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 13 15:53:02 PST 2004


Changes in directory poolalloc/test:

TEST.poolalloc.Makefile updated: 1.9 -> 1.10

---
Log message:

Add a hack to support running spec through the pool allocator


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

Index: poolalloc/test/TEST.poolalloc.Makefile
diff -u poolalloc/test/TEST.poolalloc.Makefile:1.9 poolalloc/test/TEST.poolalloc.Makefile:1.10
--- poolalloc/test/TEST.poolalloc.Makefile:1.9	Sun Nov 16 13:40:39 2003
+++ poolalloc/test/TEST.poolalloc.Makefile	Fri Feb 13 15:52:08 2004
@@ -44,10 +44,28 @@
 Output/%.poolalloc.cbe: Output/%.poolalloc.cbe.c $(PA_RT_O)
 	-$(CC) $(CFLAGS) $< $(PA_RT_O) $(LLCLIBS) $(LDFLAGS) -lstdc++ -o $@
 
-# This rule runs the generated executable, generating timing information
+
+ifndef PROGRAMS_HAVE_CUSTOM_RUN_RULES
+
+# This rule runs the generated executable, generating timing information, for
+# normal test programs
 $(PROGRAMS_TO_TEST:%=Output/%.poolalloc.out-cbe): \
 Output/%.poolalloc.out-cbe: Output/%.poolalloc.cbe
 	-$(RUNSAFELY) $(STDIN_FILENAME) $@ $< $(RUN_OPTIONS)
+else
+
+# This rule runs the generated executable, generating timing information, for
+# SPEC
+$(PROGRAMS_TO_TEST:%=Output/%.poolalloc.out-cbe): \
+Output/%.poolalloc.out-cbe: Output/%.poolalloc.cbe
+	$(SPEC_SANDBOX) poolalloccbe-$(RUN_TYPE) $@ $(REF_IN_DIR) \
+             $(RUNSAFELY) $(STDIN_FILENAME) $(STDOUT_FILENAME) \
+                  ../../$< $(RUN_OPTIONS)
+	-(cd Output/poolalloccbe-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
+	-cp Output/poolalloccbe-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+
+endif
+
 
 # This rule diffs the post-poolallocated version to make sure we didn't break
 # the program!





More information about the llvm-commits mailing list