public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/50751] SH Target: Displacement addressing does not work for QImode and HImode
Date: Wed, 11 Apr 2012 11:35:00 -0000	[thread overview]
Message-ID: <bug-50751-4-yPCErjQM1w@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50751-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50751

--- Comment #26 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-04-11 11:35:36 UTC ---
Author: olegendo
Date: Wed Apr 11 11:35:32 2012
New Revision: 186311

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186311
Log:
    PR target/50751
    * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
    consider_sh2a and allow_zero.
    * config/sh/sh.c (sh_legitimate_index_p): Likewise.
    (disp_addr_displacement): New function.
    (sh_address_cost): Use disp_addr_displacement function instead
    of DISP_ADDR_OFFSET.
    (sh_legitimate_address_p): Adapt to changed
    sh_legitimate_index_p declaration.
    (sh_find_mov_disp_adjust): Remove HImode check.
    (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
    disp_addr_displacement and max_mov_insn_displacement.
    (max_mov_insn_displacement): Remove HImode check.
    * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, 
    DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
    * config/sh/constraints.md (K05, K13): New constraints.
    (K12): Correct comment.
    (Sdd): Do not use DISP_ADDR_P macro.
    (Snd, Sbw): Use satisfies_constraint_Sdd.
    * config/sh/sh.md (extendhisi2): Remove constraints from expander.
    (*extendhisi2_compact, movhi_i): Remove.
    (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
    *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
    *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
    *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
    (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
    *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
    *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
    CONST_OK_FOR_Kxx.
    Add new peepholes for HImode displacement addressing.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/constraints.md
    trunk/gcc/config/sh/predicates.md
    trunk/gcc/config/sh/sh-protos.h
    trunk/gcc/config/sh/sh.c
    trunk/gcc/config/sh/sh.h
    trunk/gcc/config/sh/sh.md


  parent reply	other threads:[~2012-04-11 11:35 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-16 22:56 [Bug target/50751] New: " oleg.endo@t-online.de
2011-10-17  0:30 ` [Bug target/50751] " kkojima at gcc dot gnu.org
2011-10-17  0:38 ` oleg.endo@t-online.de
2011-10-17  0:51 ` kkojima at gcc dot gnu.org
2011-10-23 21:57 ` oleg.endo@t-online.de
2011-10-24 23:05 ` kkojima at gcc dot gnu.org
2011-10-26 22:37 ` oleg.endo@t-online.de
2011-10-26 23:07 ` oleg.endo@t-online.de
2011-10-27  2:31 ` kkojima at gcc dot gnu.org
2011-10-27  9:31 ` oleg.endo@t-online.de
2011-10-27 21:11 ` oleg.endo@t-online.de
2011-10-27 21:54 ` oleg.endo@t-online.de
2011-10-27 22:35 ` kkojima at gcc dot gnu.org
2011-11-02  0:16 ` oleg.endo@t-online.de
2011-11-02  0:58 ` kkojima at gcc dot gnu.org
2011-11-02  1:38 ` oleg.endo@t-online.de
2011-11-18  0:03 ` oleg.endo@t-online.de
2011-11-28 13:18 ` oleg.endo@t-online.de
2011-12-11  1:00 ` oleg.endo@t-online.de
2011-12-12  2:11 ` kkojima at gcc dot gnu.org
2011-12-12  2:29 ` oleg.endo@t-online.de
2011-12-12 22:16 ` kkojima at gcc dot gnu.org
2012-02-26 23:24 ` olegendo at gcc dot gnu.org
2012-03-19 19:19 ` olegendo at gcc dot gnu.org
2012-03-21 20:39 ` olegendo at gcc dot gnu.org
2012-03-27 20:37 ` olegendo at gcc dot gnu.org
2012-04-05 18:44 ` olegendo at gcc dot gnu.org
2012-04-11 11:35 ` olegendo at gcc dot gnu.org [this message]
2012-04-11 23:01 ` olegendo at gcc dot gnu.org
2012-04-19  9:31 ` olegendo at gcc dot gnu.org
2012-04-30 19:38 ` olegendo at gcc dot gnu.org
2012-08-09 15:51 ` olegendo at gcc dot gnu.org
2012-08-14 17:54 ` olegendo at gcc dot gnu.org
2013-11-26 11:48 ` olegendo at gcc dot gnu.org
2013-12-06 19:34 ` olegendo at gcc dot gnu.org
2013-12-08 14:19 ` olegendo at gcc dot gnu.org
2014-09-12 17:29 ` olegendo at gcc dot gnu.org
2014-12-07 22:57 ` olegendo at gcc dot gnu.org
2014-12-07 22:59 ` olegendo at gcc dot gnu.org
2014-12-07 23:01 ` olegendo at gcc dot gnu.org
2015-02-08 22:26 ` olegendo at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50751-4-yPCErjQM1w@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).