https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #9) > This should work, I think: With that I get on the reduced testcase: ``` f: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. cmp r0, #0 bxeq lr mov r3, #0 str r3, [r0] bx lr ``` Which looks 100% correct now.