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

Evan Cheng evan.cheng at apple.com
Tue Apr 4 11:37:55 PDT 2006



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

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

Eliminate timing printout. Dump more info for more meaningful comparison.


---
Diffs of the changes:  (+10 -6)

 sse.expandfft.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c
diff -u llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c:1.1 llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c:1.2
--- llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c:1.1	Mon Apr  3 19:47:54 2006
+++ llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c	Tue Apr  4 13:37:42 2006
@@ -65,18 +65,22 @@
       printf(" for n=%d, fwd/bck error=%e\n",N,error);
       first = 0;
    } else {
-      t1   = ((float)clock())/((float) CLOCKS_PER_SEC);
+       unsigned j = 0;
       for(it=0;it<1000;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/2000.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