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

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