https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85624
--- Comment #2 from Senthil Kumar Selvaraj <saaadhu at gcc dot gnu.org> --- When cfgexpand invokes gen_setmemhi, operands[1] is (const_int 6) - it's the pattern which copies it to (reg:QI). Setting the mode of operands[1] to HImode makes the problem go away - clrmemhi matches the generated pattern. Need to check why clrmemqi doesn't match.