]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/visium/bit_shift.c
bf373428de8ad050eb658a68ce8ceed8293d1219
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / visium / bit_shift.c
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
3
4 int bit_shift (long int x)
5 {
6 int i, n;
7
8 for (i = n = 0; x && (i < (sizeof(long) * 8)); ++i, x >>= 1)
9 n += (int)(x & 1L);
10 return n;
11 }
12
13 /* { dg-final { scan-assembler-not "cmp" } } */