]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/50751 (SH Target: Displacement addressing does not work for...
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 7 Dec 2014 23:00:30 +0000 (23:00 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 7 Dec 2014 23:00:30 +0000 (23:00 +0000)
gcc/
Backport from mainline
2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/50751
* config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.

From-SVN: r218471

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

index 2faff6a64841dcd56d451efa437c0c68f2b38869..f954281aa906b86d70ccdab2001e78b2becb1088 100644 (file)
@@ -1,3 +1,11 @@
+2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       Backport from mainline
+       2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/50751
+       * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
+
 2014-12-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backport from mainline
index 4390bacddf53088c78272a172a9bc273e6edddee..f86ae3d3e1e6769f34b05bd7818e8e486b8730e9 100644 (file)
@@ -6133,10 +6133,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")