2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / restrict-3.c
blob08faafada2596e6d32b176f7335a0385e95e1fc8
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-strict-aliasing -fdump-tree-lim-details" } */
4 void f(int * __restrict__ r,
5 int a[__restrict__ 16][16],
6 int b[__restrict__ 16][16],
7 int i, int j)
9 int x;
10 *r = 0;
11 for (x = 1; x < 16; ++x)
12 *r = *r + a[i][x] * b[x][j];
15 /* We should apply store motion to the store to *r. */
17 /* { dg-final { scan-tree-dump "Executing store motion of \\\*r" "lim" } } */
18 /* { dg-final { cleanup-tree-dump "lim" } } */