https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126081
--- Comment #6 from Stafford Horne <shorne at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #5) > Created attachment 64924 [details] > A patch > > Try this. This works, I was also investigating this and considered doing a patch like this. But started to look at another approach. Perhaps we can: 1. Remove the previous patches that allow referencing SR[f] in SImode; which is causing these invalid sequences to be generated. 2. Introduce the right conditions to avoid ifcvt from generating the ICE during the conditional_move optimizations. Note ifcvt (PR 125155 case) doesn't fail if we compile with flag '-mcmov' which enables conditions_move instructions. What do you think? I will spend a bit of time figuring out if this is possible. But if it's too much trouble I would like to go with your patch. Thanks for the help.
