Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-popcount-11.c
blobe59be003abb7b883679786005f4949ce9e4ba0d7
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int foo(unsigned short x)
6 unsigned short t1 = __builtin_bswap16(x);
7 unsigned int t2 = t1;
8 return __builtin_popcount (t2);
11 int fool(unsigned short x)
13 unsigned short t1 = __builtin_bswap16(x);
14 unsigned long t2 = t1;
15 return __builtin_popcountl (t2);
18 int fooll(unsigned short x)
20 unsigned short t1 = __builtin_bswap16(x);
21 unsigned long long t2 = t1;
22 return __builtin_popcountll (t2);
25 /* { dg-final { scan-tree-dump-not "bswap" "optimized" } } */