http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57130
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-05-02 09:23:22 UTC --- Created attachment 29995 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29995 simplify-truncate.patch Another thing, it is weird we don't simplify that subreg much earlier, we know that nonzero_bits on the inner operand has all zeros in the mode that it is truncated to, therefore it must be zero.