https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105358
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52865 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52865&action=edit gcc12-pr105358.patch So what about this? All the newly added comparisons should fold into true or false at compile time.