https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120059
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (subreg:QI (not:SI (reg:SI 20 xmm0 [orig:101 vect__2.6 ] [101])) 0) And yes a subreg here won't work on xmm0 for QI mode. Anyways I am going to test my patch and push it as obvious since simplify_gen_subreg will return NULL for cases like this when it will cause an invalid subreg.