aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/cbranchcc4-1.c
blob: 6c2cd130b6dabbcab0a77f31ae372f4cf8cdb9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2" } */

/* Verify there is no ICE with cbranchcc4 enabled.  */

int foo (double d)
{
  if (d == 0.0)
    return 0;

  d = ((d) >= 0 ? (d) : -(d));

  if (d < 1.0)
    return 1;
}