OSDN Git Service

2010-01-21 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-3.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim-details" } */
3
4 struct { int x; int y; } global;
5 void foo(int n)
6 {
7   int i;
8   for ( i=0; i<n; i++)
9     global.y += global.x*global.x;
10 }
11
12 /* { dg-final { scan-tree-dump "Executing store motion of global.y" "lim1" } } */
13 /* { dg-final { scan-tree-dump "Moving statement.*global.x.*out of loop 1" "lim1" } } */
14 /* { dg-final { cleanup-tree-dump "lim\[1-2\]" } } */