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

int
foo (int i)
{
  if (i > 0)
    i = -i;
  return i;
}

/* We should not have ABS_EXPR but ABSU_EXPR instead. */
/* { dg-final { scan-tree-dump-not "ABS_EXPR" "optimized" } } */
/* { dg-final { scan-tree-dump "ABSU" "optimized" } } */