https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96532
--- Comment #4 from Thorsten Otto <ad...@tho-otto.de> --- Might be caused by x86 and s390 having a machine dependant pattern for setmem/cpymem, possibly eliminating the library call again, while other target's don't have such a pattern.