This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386]: Add arch flag for sahf instruction


H. J. Lu wrote:

The patch is fine with me, just I think H. J. should comment on whether
-march=nocona should use sahf or not. I believe it is not only about
very old prototypes, but also about early production machines.
(at least my Nocna box does reject SAHF)

-march=nocona shouldn't use sahf. However, -machine=native should
check the lahf_lm bit.
I have committed the patch after adding PTA_NO_SAHF to nocona processor flags.

Regarding -machine=native, I'll post a follow-up patch to solve this issue. FWIW, cmpxchg16 also has a cpuid flag, unhandled in current x86 driver.

Uros.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]