https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83707
--- Comment #1 from acsawdey at gcc dot gnu.org --- OK, this has nothing to do with memcmp builtin expansion. Also fails with just -m32 -O1 -fno-builtin-memcmp. Passes with -O0. I checked in gdb and when it fails the v2 and vt being compared are actually different.