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]

[graphite] pr38791: fix testcase


Hello,

Attached is a fix for one of the testcases of graphite that fails on
32bit machines
see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38791
Ok for trunk?

Thanks,
Sebastian Pop
--
AMD - GNU Tools
Index: block-3.c
===================================================================
--- block-3.c	(revision 143190)
+++ block-3.c	(working copy)
@@ -1,9 +1,9 @@
 /* { dg-options "-O2 -floop-block -fdump-tree-graphite-all" } */
 
 #define N 24
-#define M 1000
+#define M 100
 
-float A[1000][1000][1000], B[1000][1000], C[1000][1000];
+float A[M][M][M], B[M][M], C[M][M];
 
 void test (void)
 {
@@ -16,9 +16,9 @@ void test (void)
         A[i][j][k] = B[i][k] * C[k][j];
 
   /* These loops should still be strip mined.  */
-  for (i = 0; i < 1000; i++)
-    for (j = 0; j < 1000; j++)
-      for (k = 0; k < 1000; k++)
+  for (i = 0; i < M; i++)
+    for (j = 0; j < M; j++)
+      for (k = 0; k < M; k++)
         A[i][j][k] = B[i][k] * C[k][j];
 }
 

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