summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr89506.c
blob: 2ec4f32118a67598e5c5a5f5fd7fb109c74227e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/89506 */
/* { dg-do compile } */
/* { dg-options "-Og -g -w" } */

long long a;
int c;

int
foo (long long d, short e)
{
  __builtin_sub_overflow (0xffffffff, c, &a);
  e >>= ~2147483647 != (int) a;
  return d + e;
}