gcc/testsuite/gcc.dg/pr88905.c
raw| 1 | /* PR target/88905 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-Og -fno-tree-ccp" } */ |
| 4 | /* { dg-additional-options "-mabm" { target { i?86-*-* x86_64-*-* } } } */ |
| 5 | /* { dg-require-effective-target int32plus } */ |
| 6 | |
| 7 | int a, b, c; |
| 8 | extern void baz (int); |
| 9 | |
| 10 | static inline int |
| 11 | bar (unsigned u) |
| 12 | { |
| 13 | int i = __builtin_popcountll (-(unsigned long long) u); |
| 14 | baz (i & c); |
| 15 | return a + b + c; |
| 16 | } |
| 17 | |
| 18 | void |
| 19 | foo (void) |
| 20 | { |
| 21 | bar (2376498292ULL); |
| 22 | } |