On Fri, 9 Apr 2021 10:46:30 -0400 Chris Fowler <linx...@gmail.com> wrote:
> I am fully aware that other OSS packages could use CMOV with inline > assembly. I'm just wanting GCC to forget it even exists when it tries to > implement CMOV during -03 optimization. I think the most correct approach for your CPU is just to invoke -march=i586 to avoid the use of CMOV: https://clfs-support.cross-lfs.narkive.com/x1E4tLvU/i586-target-with-cmov This page might also be of help: https://stackoverflow.com/questions/60837883/removing-cmov-instructions-using-gcc-9-2-0-x86 which suggests adding the options (if you can't/don't use -march=i586) -fdisable-tree-phiopt[1-4] and -fdisable-rtl-ce[1-3] Note that there is a -mno-cmov for gcc, but that only seems to be available for the NDS32 platform: https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Option-Summary.html Sigh. Cheers, Mike Shell -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style