From b63e26d5eff63df5886e0f2fa1f0c593a1f7a02c Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Sun, 7 Dec 2014 22:57:11 +0000 Subject: [PATCH] re PR target/50751 (SH Target: Displacement addressing does not work for QImode and HImode) gcc/ PR target/50751 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1. From-SVN: r218469 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.md | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46e41ec9892c..fa95bebe2b7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-07 Oleg Endo + + PR target/50751 + * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1. + 2014-12-07 Eric Botcazou * compare-elim.c: Fix head comment. diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 085a806e9f5a..644dd06a9666 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -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") -- 2.43.5