summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr38774.c
blob: d6d7fcb0ff55e86b7a707d6aae195592f1a01748 (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-*-* } && ilp32 } } } */

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;
}