[llvm-commits] CVS: llvm/test/Programs/SingleSource/fldry.c

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 22 16:02:01 PDT 2003


Changes in directory llvm/test/Programs/SingleSource:

fldry.c updated: 1.1 -> 1.2

---
Log message:

Don't divide by zero or print out argv[0]


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/fldry.c
diff -u llvm/test/Programs/SingleSource/fldry.c:1.1 llvm/test/Programs/SingleSource/fldry.c:1.2
--- llvm/test/Programs/SingleSource/fldry.c:1.1	Fri Feb 14 18:30:24 2003
+++ llvm/test/Programs/SingleSource/fldry.c	Tue Apr 22 16:01:47 2003
@@ -173,9 +173,8 @@
 int argc;
 char **argv;
 {
-	printf( "%s: calculate floating dhrystones using doubles size %d\n",
-		argv[0], sizeof(extended)
-	);
+  printf("calculate floating dhrystones using doubles size %d\n",
+         sizeof(extended));
 	//fflush( stdout);
 	Proc0();
 #if 0
@@ -293,6 +292,7 @@
 -- Stop Timer --
 *****************/
 
+#if 0
 #ifdef CLOCK
 	benchtime = ( clock() - starttime - nulltime )/ CLK_TCK;
 	printf("Dhrystone(%s) time for %ld passes = %ld\n",
@@ -307,8 +307,8 @@
 	printf("Dhrystone(%s) time for %ld passes = %ld\n",
 		Version,
 		(long) LOOPS, benchtime);
-	printf("This machine benchmarks at %ld floating dhrystones/second\n",
-		((long) LOOPS) / benchtime);
+        printf("This machine benchmarks at %ld floating dhrystones/second\n",
+               ((long) LOOPS) / benchtime);
 #endif
 #ifdef TIMES
 	times(&tms);
@@ -319,7 +319,7 @@
 	printf("This machine benchmarks at %ld floating dhrystones/second\n",
 		((long) LOOPS) * HZ / benchtime);
 #endif
-
+#endif
 }
 
 Proc1(PtrParIn)





More information about the llvm-commits mailing list