]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated mode to sh_legitimate_index_...
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 2 Sep 2012 13:05:10 +0000 (13:05 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 2 Sep 2012 13:05:10 +0000 (13:05 +0000)
* config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
mode to sh_legitimate_index_p instead of QImode.

From-SVN: r190862

gcc/ChangeLog
gcc/config/sh/sh.md

index 19c3645e8a978a5f29ca65605a75bc7d4989e3a8..8ebf53e6696d8c095516aa23f5336fad7009719b 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
+       mode to sh_legitimate_index_p instead of QImode.
+
 2012-09-02  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR rtl-optimization/54369
index 70d6d7b247545e8844290345cefd37ed2f990aba..f1b5df72b3fd06a2cc6e96ecd0274f76ed9671eb 100644 (file)
@@ -5576,7 +5576,7 @@ label:
            (plus:SI
              (match_operand:SI 1 "arith_reg_operand" "%r,r,r")
              (match_operand:SI 2 "const_int_operand" "<disp04>,N,<disp12>")))))]
-  "TARGET_SH2A && sh_legitimate_index_p (QImode, operands[2], true, true)"
+  "TARGET_SH2A && sh_legitimate_index_p (<MODE>mode, operands[2], true, true)"
   "@
        mov.<bw>        @(%O2,%1),%0
        mov.<bw>        @%1,%0