aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr88905.c
blob: fd2c2647325a4635b6f106d8af88fa09520b09c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR target/88905 */
/* { dg-do compile } */
/* { dg-options "-Og -fno-tree-ccp" } */
/* { dg-additional-options "-mabm" { target { i?86-*-* x86_64-*-* } } } */
/* { dg-require-effective-target int32plus } */

int a, b, c;
extern void baz (int);

static inline int
bar (unsigned u)
{
  int i = __builtin_popcountll (-(unsigned long long) u);
  baz (i & c);
  return a + b + c;
}

void
foo (void)
{
  bar (2376498292ULL);
}