predicates.md (t_reg_operand): Check REG_P for SUBREG.

2012-09-14  Christian Bruel  <christian.bruel@st.com>

       * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
       * config/sh/sh.c (sequence_insn_p: Check INSNP_P for SEQUENCE.

From-SVN: r191300
This commit is contained in:
Christian Bruel 2012-09-14 15:01:56 +02:00 committed by Christian Bruel
parent 5f08ae1eb5
commit 312f9b9de7
3 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2012-09-14 Christian Bruel <christian.bruel@st.com>
* config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
* config/sh/sh.c (sequence_insn_p: Check INSNP_P for SEQUENCE.
2012-09-14 Jakub Jelinek <jakub@redhat.com>
PR target/54564

View File

@ -998,11 +998,12 @@
return REGNO (op) == T_REG;
case SUBREG:
return REGNO (SUBREG_REG (op)) == T_REG;
return REG_P (SUBREG_REG (op)) && REGNO (SUBREG_REG (op)) == T_REG;
case ZERO_EXTEND:
case SIGN_EXTEND:
return GET_CODE (XEXP (op, 0)) == SUBREG
&& REG_P (SUBREG_REG (XEXP (op, 0)))
&& REGNO (SUBREG_REG (XEXP (op, 0))) == T_REG;
default:

View File

@ -9876,7 +9876,7 @@ fpscr_set_from_mem (int mode, HARD_REG_SET regs_live)
static bool
sequence_insn_p (rtx insn)
{
rtx prev, next, pat;
rtx prev, next;
prev = PREV_INSN (insn);
if (prev == NULL)
@ -9886,11 +9886,7 @@ sequence_insn_p (rtx insn)
if (next == NULL)
return false;
pat = PATTERN (next);
if (pat == NULL)
return false;
return GET_CODE (pat) == SEQUENCE;
return INSN_P (next) && GET_CODE (PATTERN (next)) == SEQUENCE;
}
int