[llvm-commits] [test-suite] r103201 - in /test-suite/trunk/SingleSource/UnitTests/Vector/SSE: sse.expandfft.c sse.stepfft.c
Chris Lattner
sabre at nondot.org
Thu May 6 14:53:03 PDT 2010
Author: lattner
Date: Thu May 6 16:53:02 2010
New Revision: 103201
URL: http://llvm.org/viewvc/llvm-project?rev=103201&view=rev
Log:
make these tests more portable by avoiding valloc. Patch by Galina Kistanova!
Modified:
test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c
test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c
Modified: test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c?rev=103201&r1=103200&r2=103201&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c Thu May 6 16:53:02 2010
@@ -6,6 +6,12 @@
#define N 1024
#define N2 N/2
+/* allocate storage for x,y,z,w on 4-word bndr. */
+float x[2*N] __attribute__ ((aligned (16)));
+float y[2*N] __attribute__ ((aligned (16)));
+float z[2*N] __attribute__ ((aligned (16)));
+float w[ N] __attribute__ ((aligned (16)));
+
int main()
{
/*
@@ -20,11 +26,7 @@
float *x,*y,*z,*w;
float t1,ln2,mflops;
void cffti(),cfft2();
-/* allocate storage for x,y,z,w on 4-word bndr. */
- x = (float *)valloc(8*N);
- y = (float *)valloc(8*N);
- z = (float *)valloc(8*N);
- w = (float *)valloc(4*N);
+
first = 1;
seed = 331.0;
for(icase=0;icase<2;icase++){
@@ -269,4 +271,3 @@
*ds = (float) t;
return((float) ((t-1.0e0)/(d2-1.0e0)));
}
-
Modified: test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c?rev=103201&r1=103200&r2=103201&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c Thu May 6 16:53:02 2010
@@ -5,6 +5,13 @@
#include "xmmintrin.h"
#define N 1024
#define N2 N/2
+
+/* allocate storage for x,y,z,w on 4-word bndr. */
+float x[2*N] __attribute__ ((aligned (16)));
+float y[2*N] __attribute__ ((aligned (16)));
+float z[2*N] __attribute__ ((aligned (16)));
+float w[ N] __attribute__ ((aligned (16)));
+
int main()
{
/*
@@ -16,11 +23,7 @@
float *x,*y,*z,*w;
float t1,ln2,mflops;
void cffti(),cfft2();
-/* allocate storage for x,y,z,w on 4-word bndr. */
- x = (float *)valloc(8*N);
- y = (float *)valloc(8*N);
- z = (float *)valloc(8*N);
- w = (float *)valloc(4*N);
+
first = 1;
seed = 331.0;
for(icase=0;icase<2;icase++){
More information about the llvm-commits
mailing list