From: Oleg Endo Date: Sun, 7 Dec 2014 23:00:30 +0000 (+0000) Subject: backport: re PR target/50751 (SH Target: Displacement addressing does not work for... X-Git-Tag: releases/gcc-4.8.4~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f66230ebf8782e8da04a65c103aabb8a625a6d44;p=thirdparty%2Fgcc.git backport: re PR target/50751 (SH Target: Displacement addressing does not work for QImode and HImode) gcc/ Backport from mainline 2014-12-07 Oleg Endo PR target/50751 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1. From-SVN: r218471 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2faff6a64841..f954281aa906 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-12-07 Oleg Endo + + Backport from mainline + 2014-12-07 Oleg Endo + + PR target/50751 + * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1. + 2014-12-05 H.J. Lu Backport from mainline diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 4390bacddf53..f86ae3d3e1e6 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -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")