https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #55271|0 |1 is obsolete| | --- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 55274 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55274&action=edit gcc14-pr79173.patch Full patch I'm going to test. Unfortunately, I haven't been successful at getting the subc stuff working when not using __builtin_sub_overflow builtins nor _subborrow_u* instrinsics, only addc seems to work in that case, seems reassoc rewrites stuff that we no longer are able to even pattern match __builtin_sub_overflow in that case. So, maybe even adding the ugly clang builtins as a canned way how to express it canonically would be useful, the pattern matching can't handle infinite number of different ways how to write the same thing.