https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-02-14 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` [[gnu::noipa]] void f(int *a) { if (a) __atomic_store_n (a, 0, __ATOMIC_RELAXED); } void main() { f((int*)0); } ``` Trunk produces: ``` cmp r0, #0 movne r3, #0 str r3, [r0] bx lr ``` Which is totally wrong.