https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90310
--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> --- (In reply to Martin Liška from comment #2) > To be honest, I can't see what you see with GCC 6. I've got: > > bl __popcountsi2 > ldr r3, .L6+16 > str r0, [r3] > lsl r0, r4, #16 > lsr r0, r0, #16 > pop {r4, pc} > .L7: > my gcc-6: $ armv7a-hardfloat-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-6-branch/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/repo/gcc-6-branch/binary-6-branch-265890-checking-yes-rtl-df-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/6.5.0/lto-wrapper Target: armv7a-hardfloat-linux-gnueabi Configured with: /repo/gcc-6-branch//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df --with-cloog --with-ppl --with-isl --with-float=hard --with-fpu=vfpv4 --with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=armv7a-hardfloat-linux-gnueabi --with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld --with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch --prefix=/repo/gcc-6-branch//binary-6-branch-265890-checking-yes-rtl-df-armv7a-hardfloat Thread model: posix gcc version 6.5.0 (GCC) uxth is available on ARMv6 and above only.