summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr38774.c
blob: b62619416ef9a8f723f94c4500dc93411953ef11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR rtl-optimization/38774 */
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-options "-march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */

extern int bar (void);
volatile int g;

int
foo (void)
{
  int a = 1 >= bar ();
  if ((1 > 9223372036854775807LL - a && 1 - a ? : 1 + a) & 1)
    return g;
  return 0;
}