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

--- Comment #5 from Dimitri John Ledkov <dimitri.ledkov at surgut dot co.uk> ---
(In reply to Andrew Pinski from comment #2)
> >1) Updating documentation for the -msahf option to mention that Apple 
> >Rosetta 2 does not support this instruction would be very helpful. I will 
> >send a patch with a proposed documentation update.
> 
> 
> No, Please don't. The documentation for Rosetta should be what updated
> instead.

Rosetta documentation is already up to date, but yet undiscoverable by users.

Note gcc documentation already documents in that same paragraph known systems
that do and do not support the said instruction. it is very obscure, thus hard
to discover which target hardware has support for it, or not.

> 
> 
> >Note other compilers do not appear to generate sahf instruction by default.
> 
> Wrong, see my link.

The definition for x86-64-v2 is the same. But the compiler choices do not
produce that instruction for the same C code. As in cpython built with
march=x86-64-v2 doesn't contain SAHF instructions. I can rerun the tests of
that.

Reply via email to