https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99459
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think STRIP_NOPS strips the nops only if the outer and inner type have the same TYPE_MODE, that is not the case here, the outer type is VOID_TYPE, the inner type is some POINTER_TYPE.