[Sorry for the delay on following up on this] > The rtlanal.c parts are ok. I wonder if we ever hit the _or_truncate > case with vector modes in force_to_mode though - can you check if > using gen_lowpart instead of gen_lowpart_or_truncate works? I checked this and gen_lowpart instead of gen_lowpart_or_truncate appears fine. Attached is patch modified to use gen_lowpart, and with the test case cleaned up & changeloged. Cheers, Ralph. > > Btw, you missa ChangeLog entry for the testcase for > testsuite/ChangeLog. > > Thanks, > Richard. > > > 2008-10-19 Ralph Loader > > > > PR middle-end/37807, middle-end/37809 > > * combine.c (force_to_mode): Do not process vector types. > > > > * rtlanal.c (nonzero_bits1): Do not process vector types. > > (num_sign_bit_copies1): Likewise. > > > > Cheers, > > Ralph. > >