]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr87287.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr87287.c
CommitLineData
392750c5
JJ
1/* PR tree-optimization/87287 */
2/* { dg-options "-O2 -fdump-tree-cddce1" } */
3/* { dg-final { scan-tree-dump-not " % 16" "cddce1" } } */
4/* { dg-final { scan-tree-dump-times " & 15" 4 "cddce1" } } */
5
6void f0 (void);
7
8int
9f1 (int x)
10{
11 return x % 16 == 0;
12}
13
14int
15f2 (int x)
16{
17 int y = x % 16;
18 return y != 0;
19}
20
21void
22f3 (int x)
23{
24 if (x % 16 != 0)
25 f0 ();
26}
27
28void
29f4 (int x)
30{
31 int y = x % 16;
32 if (y == 0)
33 f0 ();
34}