aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-21.c
blob: 9f3d5695728bb3d981a1552f410e6c45dec3a83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt4-details" } */

int f(unsigned s)
{
  int i;
  for (i = 0; i < s; ++i)
    ;

  return i;
}

/* { dg-final { scan-tree-dump "converted to straightline code" "phiopt4" } } */
/* Make sure we fold the detected MAX<s, 0>.  */
/* { dg-final { scan-tree-dump-not "MAX" "phiopt4" } } */