https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292
--- Comment #14 from Roger Sayle <roger at nextmovesoftware dot com> --- Created attachment 54197 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54197&action=edit Related optimizations to ix86_expand_int_movcc. Just for the record, here is a related patch that I was working on (touching the problematic piece of code), before everything went pear shaped.