On Friday, 9 February 2018 10:09:03 PST Eric Lemanisser wrote:
> That is not my experience: https://godbolt.org/g/ZZG1mp
That's not a valid test because you forgot the -m32 switch. Disabling SSE2 on
64-bit is nonsensical.
Try this one instead: https://godbolt.org/g/C853Gx
As I said in the other email, you also need -mfpmath=sse. But even if you add
that to the right compiler, you'll see it performs the addition in SSE, but
then stores the value on the stack at the end and reloads using the 387
instructions. If your array is short, this could be a pessimisation.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Interest mailing list