[llvm-commits] [test-suite] r99858 - in /test-suite/trunk/SingleSource/UnitTests/Vector/Altivec: alti.expandfft.c alti.sdot.c alti.stepfft.c

Dale Johannesen dalej at apple.com
Mon Mar 29 17:58:32 PDT 2010


Author: johannes
Date: Mon Mar 29 19:58:32 2010
New Revision: 99858

URL: http://llvm.org/viewvc/llvm-project?rev=99858&view=rev
Log:
Fix more test bogosity:  misaligned storage,
falling off the end of main.


Modified:
    test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.expandfft.c
    test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c
    test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.stepfft.c

Modified: test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.expandfft.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.expandfft.c?rev=99858&r1=99857&r2=99858&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.expandfft.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.expandfft.c Mon Mar 29 19:58:32 2010
@@ -92,6 +92,7 @@
       if((ln2%4)==0) nits /= 10;
       n *= 2;
    }
+ return 0;
 }
 void cfft2(unsigned int n,float x[][2],float y[][2],float w[][2], float sign)
 {
@@ -103,7 +104,8 @@
 */
 
    int jb,jc,jd,jw,k,k2,k4,lj,m,j,mj,mj2,pass,tgle;
-   float rp,up,wr[4],wu[4];
+   float rp,up,wr[4] __attribute((aligned(16)));
+   float wu[4] __attribute((aligned(16)));
    float *a,*b,*c,*d;
    const vector float vminus = (vector float)(-0.,0.,-0.,0.);
    const vector float vzero  = (vector float)(0.,0.,0.,0.);

Modified: test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c?rev=99858&r1=99857&r2=99858&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c Mon Mar 29 19:58:32 2010
@@ -36,6 +36,7 @@
      kl  = 4;
   }
   if(flag == 0) printf(" All n tests passed\n");
+  return 0;
 }
 #define NS 12
 float sdot(int n, float *x, float *y)

Modified: test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.stepfft.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.stepfft.c?rev=99858&r1=99857&r2=99858&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.stepfft.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.stepfft.c Mon Mar 29 19:58:32 2010
@@ -70,6 +70,7 @@
       }
    }
    }
+  return 0;
 }
 void cfft2(n,x,y,w,sign)
 int n;
@@ -129,7 +130,7 @@
 {
    int j,k,jc,jw,l,lj,mj2;
    float rp,up;
-   float wr[4], wu[4];
+   float wr[4] __attribute((aligned(16))), wu[4] __attribute((aligned(16)));
    const vector float vminus = (vector float)(-0.,0.,-0.,0.);
    const vector float vzero  = (vector float)(0.,0.,0.,0.);
    const vector unsigned char pv3201 = 





More information about the llvm-commits mailing list