https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112804
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like -finline-stringops is not correc5 for the case where ptrmode != Pmode. I might take a look next week or the week afterwards. I also suspect you might hit it on x32 also.