[llvm-commits] CVS: llvm/test/Programs/External/SPEC/Makefile.spec Makefile.spec95
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 11 13:10:04 PST 2004
Changes in directory llvm/test/Programs/External/SPEC:
Makefile.spec updated: 1.22 -> 1.23
Makefile.spec95 updated: 1.1 -> 1.2
---
Log message:
Update profiling target to work with spec. These two files should share
some make rules...
---
Diffs of the changes: (+28 -0)
Index: llvm/test/Programs/External/SPEC/Makefile.spec
diff -u llvm/test/Programs/External/SPEC/Makefile.spec:1.22 llvm/test/Programs/External/SPEC/Makefile.spec:1.23
--- llvm/test/Programs/External/SPEC/Makefile.spec:1.22 Tue Feb 10 10:25:53 2004
+++ llvm/test/Programs/External/SPEC/Makefile.spec Wed Feb 11 13:09:00 2004
@@ -160,6 +160,20 @@
+LIBPROFILESO = $(LEVEL)/lib/Debug/libprofile_rt.so
+
+$(PROGRAMS_TO_TEST:%=Output/%.prof): \
+Output/%.prof: Output/%.llvm-prof.bc Output/%.out-nat $(LIBPROFILESO)
+ @rm -f $@
+ $(SPEC_SANDBOX) profile-$(RUN_TYPE) Output/$*.out-prof $(REF_IN_DIR) \
+ $(RUNSAFELY) $(STDIN_FILENAME) $(STDOUT_FILENAME) $(LLI) $(JIT_OPTS)\
+ -fake-argv0 '../$*.llvm.bc' -load ../../$(LIBPROFILESO) ../../$< -llvmprof-output ../../$@ $(RUN_OPTIONS)
+ -(cd Output/profile-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > Output/$*.out-prof
+ -cp Output/profile-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+ @cmp -s Output/$*.out-prof Output/$*.out-nat || \
+ printf "***\n***\n*** WARNING: Output of profiled program (Output/$*.out-prof)\n*** doesn't match the output of the native program (Output/$*.out-nat)!\n***\n***\n";
+
+
$(PROGRAMS_TO_TEST:%=Output/%.out-tracing): \
Index: llvm/test/Programs/External/SPEC/Makefile.spec95
diff -u llvm/test/Programs/External/SPEC/Makefile.spec95:1.1 llvm/test/Programs/External/SPEC/Makefile.spec95:1.2
--- llvm/test/Programs/External/SPEC/Makefile.spec95:1.1 Tue Feb 10 15:44:09 2004
+++ llvm/test/Programs/External/SPEC/Makefile.spec95 Wed Feb 11 13:09:00 2004
@@ -159,6 +159,20 @@
@echo "===> Leaving Output/bugpoint-$(RUN_TYPE)"
+LIBPROFILESO = $(LEVEL)/lib/Debug/libprofile_rt.so
+
+$(PROGRAMS_TO_TEST:%=Output/%.prof): \
+Output/%.prof: Output/%.llvm-prof.bc Output/%.out-nat $(LIBPROFILESO)
+ @rm -f $@
+ $(SPEC_SANDBOX) profile-$(RUN_TYPE) Output/$*.out-prof $(REF_IN_DIR) \
+ $(RUNSAFELY) $(STDIN_FILENAME) $(STDOUT_FILENAME) $(LLI) $(JIT_OPTS)\
+ -fake-argv0 '../$*.llvm.bc' -load ../../$(LIBPROFILESO) ../../$< -llvmprof-output ../../$@ $(RUN_OPTIONS)
+ -(cd Output/profile-$(RUN_TYPE); cat $(LOCAL_OUTPUTS)) > Output/$*.out-prof
+ -cp Output/profile-$(RUN_TYPE)/$(STDOUT_FILENAME).time $@.time
+ @cmp -s Output/$*.out-prof Output/$*.out-nat || \
+ printf "***\n***\n*** WARNING: Output of profiled program (Output/$*.out-prof)\n*** doesn't match the output of the native program (Output/$*.out-nat)!\n***\n***\n";
+
+
More information about the llvm-commits
mailing list