https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94589
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50710 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50710&action=edit gcc12-pr94589-wip.patch WIP patch that just matches those spaceship comparisons followed by single use comparison of that with -1/0/1, but doesn't yet perform any of the optimizations.