Compile Linux x64 binaries with `-march=x86-64-v2`?
kleisauke opened this issue · comments
Instead of compiling the Linux x64 binaries with -march=westmere
perhaps we should lower it to -march=x86-64-v2
? This would allow the binaries to run on Intel Nehalem, which doesn't support the AES and PCLMUL instruction sets.
Context: kleisauke/net-vips#176.
Oh, I hadn't seen this. The introduction of numeric levels for x64 microarchitecture is a great idea that helps deal with the proliferation of intrinsics. I agree we should align, and v2 makes sense.
We should also add -mtune=nehalem
as -march=x86-64-v2
appears not to automagically select it.
I guess it's possible that the removal of PCLMUL might affect zlib-ng
performance, but that's a guess.