[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c

Evan Cheng evan.cheng at apple.com
Tue Apr 4 11:52:39 PDT 2006



Changes in directory llvm-test/SingleSource/UnitTests/Vector/SSE:

sse.stepfft.c updated: 1.1 -> 1.2
---
Log message:

- Remove calls to clock() and timing printfs.
- Print out more data for comparisons.
- Bump up the test size.


---
Diffs of the changes:  (+11 -7)

 sse.stepfft.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c
diff -u llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c:1.1 llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c:1.2
--- llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c:1.1	Mon Apr  3 19:47:54 2006
+++ llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c	Tue Apr  4 13:52:26 2006
@@ -63,18 +63,22 @@
       printf(" for n=%d, fwd/bck error=%e\n",N,error);
       first = 0;
    } else {
-      t1   = ((float)clock())/((float) CLOCKS_PER_SEC);
-      for(it=0;it<10000;it++){
+      unsigned j = 0;
+      for(it=0;it<20000;it++){
          sign = +1.0;
          cfft2(n,x,y,w,sign);
          sign = -1.0;
          cfft2(n,y,x,w,sign);
       }
-      t1   = ((float)clock())/((float) CLOCKS_PER_SEC) - t1;
-      t1   = t1/20000.0;
-      ln2 = 10.0; /* reset this for different N  */
-      mflops = 5.0*((float) N)*ln2/((1.e+6)*t1);
-      printf(" for n=%d, t1=%e, mflops=%e\n",n,t1,mflops);
+      printf(" for n=%d\n",n);
+      for (i = 0; i<N; ++i) {
+        printf("%g  ", w[i]);
+        j++;
+        if (j == 4) {
+          printf("\n");
+          j = 0;
+        }
+      }
    }
    }
 }






More information about the llvm-commits mailing list