aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr84700.c
blob: c89094a56d3904d27d3f506540929ebe1ac57aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR target/84700 */
/* { dg-do compile } */
/* { dg-options "-O1 -misel" } */

long long int
foo (long long int x)
{
  long long int a = x < 2;
  int b = a >= 0;

  return a + ((x == 0) ? a : b);
}