https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113960
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Ohhh, I forgot I did that, sorry! Yeah, the memcmp code wasn't updated to match the different behaviour of __is_byte_iter for BE. We can't use memcmp if the sizes are different. We don't want to use the min, we want to guard that code with the sizes being the same, then we can just use len*sizeof(*first1) because we know it's the same as sizeof(*first2).