From ee86a05fd0280deb393058ae2dec7b47b70b7987 Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Sun, 2 Sep 2012 13:05:10 +0000 Subject: [PATCH] sh.md (*extendsi2_compact_mem_disp): Pass iterated mode to sh_legitimate_index_p instead of QImode. * config/sh/sh.md (*extendsi2_compact_mem_disp): Pass iterated mode to sh_legitimate_index_p instead of QImode. From-SVN: r190862 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19c3645e8a97..8ebf53e6696d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-09-02 Oleg Endo + + * config/sh/sh.md (*extendsi2_compact_mem_disp): Pass iterated + mode to sh_legitimate_index_p instead of QImode. + 2012-09-02 Eric Botcazou PR rtl-optimization/54369 diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 70d6d7b24754..f1b5df72b3fd 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -5576,7 +5576,7 @@ label: (plus:SI (match_operand:SI 1 "arith_reg_operand" "%r,r,r") (match_operand:SI 2 "const_int_operand" ",N,")))))] - "TARGET_SH2A && sh_legitimate_index_p (QImode, operands[2], true, true)" + "TARGET_SH2A && sh_legitimate_index_p (mode, operands[2], true, true)" "@ mov. @(%O2,%1),%0 mov. @%1,%0