It has been proposed here https://groups.google.com/forum/#!topic/llvm-dev/gGivQ38EHIY that LLVM should not autodetect the cpu by default, but only if the flag -mcpu=native is passed. This is what GCC does already with -march=native.

BTW Magnus, did you try the patch that I sent yet?

Nicola


On Mon, Apr 28, 2014 at 3:11 PM, Nicola Squartini <tensor5@gmail.com> wrote:
I've made a patch for HSE. Can you  compile the package with this patch? But don't commit it to your repo yet, just send the binary to me first and I'll see if it solves the issue with the illegal instruction.

Thanks