c++: regenerate opt urls
[official-gcc.git] / gcc / testsuite / gcc.dg / pr77975.c
bloba187ce2b50c2821841e71b5b6cb243a37a66fb57
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 = 8;
11 while (a)
13 a += 5;
14 a &= 44;
15 *b += a;
17 return a;
20 /* { dg-final { scan-tree-dump-times "Proved that loop 1 iterates 2 times using brute force" 1 "ivcanon" } } */
22 unsigned int
23 bar (unsigned int *b)
25 unsigned int a = 3;
26 while (a)
28 a += 5;
29 a &= 44;
30 *b += a;
32 return a;