This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: web ICEs on subreg


On Fri, May 10, 2013 at 11:51 PM, Mike Stump wrote:

> -       if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
> -         break;
> +       {
> +         if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
> +           break;
> +         /* DF_REF_LOC can be (subreg:DI (reg:TI 5) 8) and
> +            recog_data.operand_loc[op] can be (reg:TI 5), and the above
> +            won't find it.  */
> +         if (GET_CODE (*DF_REF_LOC (*ref)) == SUBREG &&
> +             &SUBREG_REG (*DF_REF_LOC (*ref)) == recog_data.operand_loc[op])

Congrats, you've re-invented DF_REF_REAL_LOC.

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]