[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/sim/Makefile sim.c

Jeff Cohen jeffc at jolt-lang.org
Thu Mar 29 16:55:17 PDT 2007



Changes in directory llvm-test/MultiSource/Benchmarks/sim:

Makefile updated: 1.5 -> 1.6
sim.c updated: 1.5 -> 1.6
---
Log message:

Fix for src != obj.

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

 Makefile |    2 ++
 sim.c    |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm-test/MultiSource/Benchmarks/sim/Makefile
diff -u llvm-test/MultiSource/Benchmarks/sim/Makefile:1.5 llvm-test/MultiSource/Benchmarks/sim/Makefile:1.6
--- llvm-test/MultiSource/Benchmarks/sim/Makefile:1.5	Wed Sep  1 09:33:26 2004
+++ llvm-test/MultiSource/Benchmarks/sim/Makefile	Thu Mar 29 18:54:59 2007
@@ -4,4 +4,6 @@
 CPPFLAGS = -DUNIX
 LDFLAGS  = 
 
+RUN_OPTIONS = 8 $(PROJ_SRC_DIR)/tob.38-44 $(PROJ_SRC_DIR)/liv.42-48
+
 include	../../Makefile.multisrc


Index: llvm-test/MultiSource/Benchmarks/sim/sim.c
diff -u llvm-test/MultiSource/Benchmarks/sim/sim.c:1.5 llvm-test/MultiSource/Benchmarks/sim/sim.c:1.6
--- llvm-test/MultiSource/Benchmarks/sim/sim.c:1.5	Sat May  3 00:48:35 2003
+++ llvm-test/MultiSource/Benchmarks/sim/sim.c	Thu Mar 29 18:54:59 2007
@@ -118,9 +118,9 @@
   FILE *Bp, *Ap, *Cp, *ckopen();
   char *arg1, *arg2, *arg3;
 
-  if ((Cp = fopen("sim.res","a+")) == NULL)
+  if ((Cp = fopen("Output/sim.res","a+")) == NULL)
     {
-	printf("Can not open sim.res\n\n");
+	printf("Can not open Output/sim.res\n\n");
 	exit(1);
     }
 
@@ -222,7 +222,7 @@
   /*printf("\nRun Time (sec) = %9.1lf\n",benchtime);*/
   
   fprintf(Cp,"\n");
-  fprintf(Cp,"  Run Line: sim 8 tob.38-44 liv.42-48\n");
+  fprintf(Cp,"  Run Line: %s %s %s\n", arg1, arg2, arg3);
   /*fprintf(Cp,"  Run Time: %9.1lf (sec)\n",benchtime);*/
   fprintf(Cp,"#######################################################\n");
   fclose(Cp);






More information about the llvm-commits mailing list