Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gcc.target
/
visium
/
bit_shift.c
blob: dbda64dd5f1c9e13236bf2e877cac5e0fb56637a [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O" } */
int
bit_shift
(
long
int
x
)
{
int
i
,
n
;
for
(
i
=
n
=
0
;
x
&&
(
i
<
(
sizeof
(
long
)
*
8
));
++
i
,
x
>>=
1
)
n
+=
(
int
)(
x
&
1L
);
return
n
;
}
/* { dg-final { scan-assembler-not "cmp" { xfail *-*-* } } } */