This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc.dg/vect/vect-52 failure


Hi,
  vect-52 has been failing on powerpc-linux.  On investigating, it
appears the test is invalid since b[] and c[] array bounds are
exceeded.  The access to c[256] happened to read a value that was a
nan, and nans don't compare equal to anything, including themselves.
OK to apply?

	* gcc.dg/vect/vect-52.c: Increase b[] and c[] size by one.

Index: testsuite/gcc.dg/vect/vect-52.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/vect/vect-52.c,v
retrieving revision 1.10
diff -u -p -r1.10 vect-52.c
--- testsuite/gcc.dg/vect/vect-52.c	16 Aug 2005 15:02:38 -0000	1.10
+++ testsuite/gcc.dg/vect/vect-52.c	25 Aug 2005 07:29:41 -0000
@@ -41,8 +41,8 @@ int main (void)
 {
   int i;
   float a[N] __attribute__ ((__aligned__(16)));
-  float b[N] __attribute__ ((__aligned__(16))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60};
-  float c[N] __attribute__ ((__aligned__(16))) = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
+  float b[N+1] __attribute__ ((__aligned__(16))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60};
+  float c[N+1] __attribute__ ((__aligned__(16))) = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
 
   check_vect ();
 
-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]