https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101807
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55128 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55128&action=edit Patch which I am testing This one includes the cost model here. Did a quick test on mips to see it produces the set compare instruction still.