summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr91860-1.c
blob: e715040e33d9e4bb0e5af6e1327b32056938a470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-Og -fipa-cp -g --param=max-combine-insns=3" } */

char a;
int b;

static void
bar (short d)
{
  d <<= __builtin_sub_overflow (0, d, &a);
  b = __builtin_bswap16 (~d);
}

void
foo (void)
{
  bar (21043);
}