https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117053
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > The problem is in ix86_expand_int_spaceship > > here: > + emit_insn (gen_rtx_SET (tmp, gen_rtx_ZERO_EXTEND (GET_MODE (dest), > + lt_tmp))); > > Most likely should have used: > emit_insn (gen_zero_extend<mode>si2 (tmp, lt_tmp)) No, it can't. We can't clobber flags that need to be still used.