https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630
Oleg Endo <olegendo at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46987|0 |1 is obsolete| | --- Comment #12 from Oleg Endo <olegendo at gcc dot gnu.org> --- Created attachment 46989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46989&action=edit Proposed patch (In reply to Zavadovsky Yan from comment #11) > > Yes. > Any variant - I can add more compiler options to "makefiles" or rebuild > whole toolchain. Great! That makes things simpler. The attached patch implements the ST40 special case for fabs and fneg instructions. You have to specify -m4-300 or -m4-300-single. It will also enable the fpchg instruction which is supported by ST40. Please try it out. Let me know what you find. I'll briefly test it and commit it to GCC 10, GCC 9, GCC 8, GCC 7 if there are no problems. Although this issue has been introduced in the SH FPU code refactoring in GCC 5...