aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr77407.c
blob: 8cad857154ae1f6f1ea71a87cf1c95c3b17c7424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O -fstrict-overflow -fdump-tree-gimple" } */

int foo (int c)
{
  if (c != 0)
    c /= __builtin_abs (c);
  return c;
}

int bar (int c)
{
  if (c != 0)
    c /= -c;
  return c;
}

/* { dg-final { scan-tree-dump-times "/" 0 "gimple" } } */