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

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 25 13:37:01 PDT 2003


Changes in directory llvm/test/Programs/SingleSource:

fldry.c updated: 1.2 -> 1.3

---
Log message:

* Reduce testcase size to work with LLI reasonably
* Use clock instead of time()
* don't use long doubles, use doubles instead


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/fldry.c
diff -u llvm/test/Programs/SingleSource/fldry.c:1.2 llvm/test/Programs/SingleSource/fldry.c:1.3
--- llvm/test/Programs/SingleSource/fldry.c:1.2	Tue Apr 22 16:01:47 2003
+++ llvm/test/Programs/SingleSource/fldry.c	Fri Apr 25 13:36:10 2003
@@ -80,7 +80,7 @@
 
 /* #define the type of float we will use:	*/
 #ifndef extended
-#define extended long double
+#define extended double
 #endif
 
 /* Define if should use homemade str* functions. */
@@ -88,7 +88,7 @@
 /*#define MYSTRFNS*/
 
 /* Accuracy of timings and human fatigue controlled by next two lines */
-#define LOOPS	150000		/* Use this for slow or 16 bit machines */
+#define LOOPS	15000		/* Use this for slow or 16 bit machines */
 //#define LOOPS	900000		/* Use this for faster machines */
 
 /* Compiler dependent options */
@@ -96,9 +96,9 @@
 #undef	NOSTRUCTASSIGN		/* Define if compiler can't assign structures */
 
 /* define only one of the next three defines */
-/*#define CLOCK*/
+#define CLOCK
 /*#define TIMES			/* Use times(2) time function */
-#define TIME			/* Use time(2) time function */
+/*#define TIME			/* Use time(2) time function */
 
 /* define the granularity of your times(2) function (when used) */
 /*#define HZ	50		/* times(2) returns 1/50 second (europe?) */
@@ -264,6 +264,7 @@
 #endif
 	for (i = 0; i < LOOPS; ++i)
 	{
+          if ((i & 255) == 0) printf("Making progress: %d\n", i);
 		Proc5();
 		Proc4();
 		IntLoc1 = 2.0;





More information about the llvm-commits mailing list