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: patch: move2add_note_store: handle subregs


>     if (SCALAR_INT_MODE_P (mode)
>         && hard_regno_nregs[regno][mode] == 1 && GET_CODE (set) == SET
>         && GET_CODE (SET_DEST (set)) != ZERO_EXTRACT
> !       && GET_CODE (SET_DEST (set)) != STRICT_LOW_PART
> !       && !subreg_p)
>       {
>         rtx src = SET_SRC (set);
>         rtx base_reg;

No, that is wrong.  This code is supposed to handle subregs, as long
as they have a scalar integer mode.  I.e. the new test should be:

          && SCALAR_INT_MODE_P (GET_MODE (dst))


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