https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112962
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #15) > I think e.g. aarch64 doesn't set nothrow on builtins with > -fnon-call-exceptions if they might raise floating point exceptions or > read/write memory. That is correct, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107209#c7 for a change related to aarch64's builtins and non-call exceptions and folding there.