Am 27.09.22 um 11:09 schrieb Stefan Seyfried:
But does the compiler even use these often for "normal" software? My naive idea would be to just recompile these packages that actually use these.
I've written about this before [1]: it might actually be pretty rare. The SIMD instructions are largely special-purpose and POPCNT doesn't have very good loop idiom recognition in both GCC and LLVM (in my view), it's only emitted for __builtin_popcount and some special loop. On top of that it's not an awfully common pattern to count set bits. I would love to see some kind of assembly diff for building the whole distribution with x86_64-v2, but this might be pretty hard. Perhaps Bernhard might be able to do this using the reproducible builds infrastructure. Aaron [1] https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/message/...