re PR target/50751 (SH Target: Displacement addressing does not work for QImode and...
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 7 Dec 2014 22:57:11 +0000 (22:57 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 7 Dec 2014 22:57:11 +0000 (22:57 +0000)
gcc/
PR target/50751
* config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.

From-SVN: r218469

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

index 46e41ec9892cfa0d52fbd3dc920aca9ea90cdb76..fa95bebe2b7e8dbd5b45797a92de18fe837194e7 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/50751
+       * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
+
 2014-12-07  Eric Botcazou  <ebotcazou@adacore.com>
 
        * compare-elim.c: Fix head comment.
index 085a806e9f5a46c431f3a7449b210a688b925c52..644dd06a96663066d5123e0e00eb360bbff41927 100644 (file)
@@ -6364,10 +6364,9 @@ label:
 })
 
 (define_expand "extendqihi2"
-  [(set (match_operand:HI 0 "arith_reg_dest" "")
-       (sign_extend:HI (match_operand:QI 1 "arith_reg_operand" "")))]
-  ""
-  "")
+  [(set (match_operand:HI 0 "arith_reg_dest")
+       (sign_extend:HI (match_operand:QI 1 "arith_reg_operand")))]
+  "TARGET_SH1")
 
 (define_insn "*extendqihi2_compact_reg"
   [(set (match_operand:HI 0 "arith_reg_dest" "=r")