https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119781
--- Comment #6 from Dimitri John Ledkov <dimitri.ledkov at surgut dot co.uk> --- (In reply to Andrew Pinski from comment #3) > x86_64v2 is defined in the ABI: > https://gitlab.com/x86-psABIs/x86-64-ABI/-/commit/77566eb03bc6a326811cb7e9 > > And it includes sahf . Yes, but it is a compiler choice if it is emitted. note that cpython code itself doesn't use sahf, it is generated by the compiler choice. and for the same source code LLVM chooses not to emit it.