https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=97387 Component|target |middle-end --- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- x86 has _addcarry_u64 which gets it mostly (see PR 97387). The clang builtins __builtin_*_overflow are there but not the __builtin_add* builtins. GCC does do a decent job of optimizing the original code now too.