[llvm-commits] CVS: llvm/test/Programs/External/SPEC/Makefile.spec
Anand Shukla
ashukla at cs.uiuc.edu
Fri Jul 18 11:01:02 PDT 2003
Changes in directory llvm/test/Programs/External/SPEC:
Makefile.spec updated: 1.12 -> 1.13
---
Log message:
Added execution for tracing framework executables
---
Diffs of the changes:
Index: llvm/test/Programs/External/SPEC/Makefile.spec
diff -u llvm/test/Programs/External/SPEC/Makefile.spec:1.12 llvm/test/Programs/External/SPEC/Makefile.spec:1.13
--- llvm/test/Programs/External/SPEC/Makefile.spec:1.12 Fri Jun 20 18:32:02 2003
+++ llvm/test/Programs/External/SPEC/Makefile.spec Fri Jul 18 11:00:24 2003
@@ -47,6 +47,7 @@
CPPFLAGS += -DSPEC_CPU2000
SPEC_SANDBOX := $(LEVEL)/test/Programs/External/SPEC/Sandbox.sh
+SPEC_SANDBOX_COV := $(LEVEL)/test/Programs/External/SPEC/Sandbox_cov.sh
# Information about testing the program...
REF_IN_DIR := $(SPEC_BENCH_DIR)/data/$(RUN_TYPE)/input/
@@ -82,6 +83,7 @@
-(cd Output/jit-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
-cp Output/jit-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+ifndef GET_LLVM_TRACE
$(PROGRAMS_TO_TEST:%=Output/%.out-llc): \
Output/%.out-llc: Output/%.llc
$(SPEC_SANDBOX) llc-$(RUN_TYPE) $@ $(REF_IN_DIR) \
@@ -89,6 +91,15 @@
../../$< $(RUN_OPTIONS)
-(cd Output/llc-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
-cp Output/llc-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+else
+$(PROGRAMS_TO_TEST:%=Output/%.out-llc): \
+Output/%.out-llc: Output/%.llc
+ $(SPEC_SANDBOX) llc-$(RUN_TYPE) $@ $(REF_IN_DIR) \
+ ../../$(RUNSAFELY_TRACE_EXECS) $(STDIN_FILENAME) \
+ $(STDOUT_FILENAME) ../../$< $(RUN_OPTIONS)
+ -(cd Output/llc-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
+ -cp Output/llc-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+endif
$(PROGRAMS_TO_TEST:%=Output/%.out-cbe): \
Output/%.out-cbe: Output/%.cbe
@@ -113,3 +124,16 @@
../../$< $(RUN_OPTIONS)
-(cd Output/cbe-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
-cp Output/cbe-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+
+$(PROGRAMS_TO_TEST:%=Output/%.out-tracing): \
+Output/%.out-tracing: Output/%.trace
+ $(SPEC_SANDBOX) trace-$(RUN_TYPE) $@ $(REF_IN_DIR) \
+ ../../$(RUNSAFELY_TRACE_EXECS) $(STDIN_FILENAME) $(STDOUT_FILENAME) \
+ ../../$< $(RUN_OPTIONS)
+ -(cd Output/trace-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > $@
+ -cp Output/trace-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+
+$(PROGRAMS_TO_TEST:%=Output/%.performance): \
+Output/%.performance: Output/%.out-llc Output/%.out-tracing
+ -$(TIMESCRIPT) $* Output/$*.out-llc.time Output/$*.out-tracing.time $@
+
More information about the llvm-commits
mailing list