https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68081

--- Comment #5 from Jeffrey Walton <noloader at gmail dot com> ---
(In reply to Marc Glisse from comment #4)
> For intrinsics, gcc mostly considers Intel as the standard, so the
> documentation would be https://software.intel.com/en-us/node/523865 .

Thanks Andrew.

Please don't take this in an argumentative manner... Intel is aggressive at
times with respect to anti-competivie practices. Intel builds software that is
fast for its processors, and slow or non-existent for other maker's CPUs.
Microsoft uses Intel intrinsics too, and they even link back to the Intel docs.
Microsoft has lots of footnotes that effectively state "does not work with AMD
CPUs". Confer, check out the use of footnote [2] at
http://msdn.microsoft.com/en-us/library/hh977022.aspx.

Does GCC arbitrarily penalize AMD? Should I just do this in ASM and forgo
builtins/intrinsics?

I had to do it in ASM on Microsoft platforms precisely because of the
anti-competivie practices percolated up from Intel. And using the documented
GCC functions is proving to be more trouble than its worth. I just checked
another Cygwin installation providing X86, and it can't compile the program
either. A copy/paste of the code into NASM is not a hardship.

Reply via email to