This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] patch to fix an ICE involving sign-extract of mmx expression
- From: Richard Henderson <rth at redhat dot com>
- To: Fariborz Jahanian <fjahanian at apple dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Fri, 23 Sep 2005 12:41:09 -0700
- Subject: Re: [RFC] patch to fix an ICE involving sign-extract of mmx expression
- References: <A92BA77D-9E9B-454E-9894-CC144754B4EA@apple.com>
On Thu, Sep 22, 2005 at 01:21:06PM -0700, Fariborz Jahanian wrote:
> /* Avoid creating invalid subregs, for example when
> simplifying (x>>32)&255. */
> ! if (final_word >= GET_MODE_SIZE (inner_mode)
> ! || (final_word % GET_MODE_SIZE (tmode)) != 0)
> return NULL_RTX;
I think you should just call validate_subreg. Ok with that change.
r~