Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
gcc.target
/
nvptx
/
popc-2.c
blob: 90bda4ad452f517630d1e603fc4892498ab5a886 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2" } */
unsigned
long
foo
(
unsigned
long
x
)
{
return
__builtin_popcountl
(
x
);
}
/* { dg-final { scan-assembler-times "popc.b64" 1 } } */
/* { dg-final { scan-assembler-times "cvt.s64.s32" 1 } } */