Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / pr77975.c
blob148cebdded964da7fce148abdf2a430c55650513
1 /* PR tree-optimization/77975 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-ivcanon-details" } */
5 /* { dg-final { scan-tree-dump-times "Proved that loop 1 iterates 1 times using brute force" 1 "ivcanon" } } */
7 unsigned int
8 foo (unsigned int *b)
10 unsigned int a = 3;
11 while (a)
13 a >>= 1;
14 *b += a;
16 return a;
19 /* { dg-final { scan-tree-dump-times "Proved that loop 1 iterates 2 times using brute force" 1 "ivcanon" } } */
21 unsigned int
22 bar (unsigned int *b)
24 unsigned int a = 7;
25 while (a)
27 a >>= 1;
28 *b += a;
30 return a;