[llvm-commits] [test-suite] r99852 - /test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/alti.sdot.c

Dale Johannesen dalej at apple.com
Mon Mar 29 16:48:15 PDT 2010


Author: johannes
Date: Mon Mar 29 18:48:15 2010
New Revision: 99852

URL: http://llvm.org/viewvc/llvm-project?rev=99852&view=rev
Log:
Fix test; storage addressed by Altivec instructions
must be 16-byte aligned.


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

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=99852&r1=99851&r2=99852&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 18:48:15 2010
@@ -6,7 +6,9 @@
 main()
 {
 /* Mac G-4 sdot for arbitrary N wpp 6/8/2002 */
-  float x[N],y[N],tres,res,eps;
+  float x[N] __attribute__((aligned(16)));
+  float y[N] __attribute__((aligned(16)));
+  float tres,res,eps;
   int flag,i,k,ki,kl,n0,n;
   static float seed = 331.0;
   float sdot(int,float *,float *);





More information about the llvm-commits mailing list