2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46970
* gcc.dg/graphite/pr46970.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169257
138bc75d-0d04-0410-961f-
82ee72b054a4
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
+ PR tree-optimization/46970
+ * gcc.dg/graphite/pr46970.c: New.
+
+2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
+
PR tree-optimization/46215
* gcc.dg/graphite/pr46215.c: New.
--- /dev/null
+/* { dg-do run } */
+/* { dg-options "-Os -ftree-loop-linear" } */
+
+#define N 16
+
+int
+main1 (int n, int *a)
+{
+ int i, j;
+
+ for (i = 0; i < n; i++)
+ for (j = 0; j < n; j++)
+ a[j] = i + n;
+
+ for (j = 0; j < n; j++)
+ if (a[j] != i + n - 1)
+ __builtin_abort ();
+
+ return 0;
+}
+
+int
+main ()
+{
+ int a[N];
+ main1 (N, a);
+ return 0;
+}