public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "amodra at bigpond dot net dot au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/15289] reload error with big-endian subregs
Date: Wed, 05 May 2004 14:24:00 -0000	[thread overview]
Message-ID: <20040505142422.32571.qmail@sources.redhat.com> (raw)
In-Reply-To: <20040505053304.15289.amodra@bigpond.net.au>


------- Additional Comments From amodra at bigpond dot net dot au  2004-05-05 14:24 -------
This:
(insn 16 15 17 0 (set (reg:SI 9 9 [129])
        (zero_extend:SI (subreg:QI (reg:SI 0 0 [128]) 2))) 18 {*rs6000.md:508}
(insn_list 13 (nil))
    (nil))

gets turned into
(insn 64 15 16 0 (set (reg:QI 10 10)
        (reg:QI 0 0)) -1 (nil)
    (nil))

(insn 16 64 17 0 (set (reg:SI 9 9 [129])
        (zero_extend:SI (reg:QI 10 10))) 18 {*rs6000.md:508} (insn_list 13 (nil))
    (nil))

Jan, http://gcc.gnu.org/ml/gcc-patches/2003-04/msg00882.html added the code to
reload that made a reload necessary for (subreg:QI (reg:SI 0 0 [128]) 2) with
the hunk
*************** find_reloads (insn, replace, ind_levels,
*** 2869,2874 ****
--- 2876,2887 ----
  	      if (GET_CODE (SUBREG_REG (operand)) == REG
  		  && REGNO (SUBREG_REG (operand)) < FIRST_PSEUDO_REGISTER)
  		{
+ 		  if (!subreg_offset_representable_p
+ 			(REGNO (SUBREG_REG (operand)),
+ 			 GET_MODE (SUBREG_REG (operand)),
+ 			 SUBREG_BYTE (operand),
+ 			 GET_MODE (operand)))
+ 		     force_reload = 1;
  		  offset += subreg_regno_offset (REGNO (SUBREG_REG (operand)),
  						 GET_MODE (SUBREG_REG (operand)),
  						 SUBREG_BYTE (operand),


-- 


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


  parent reply	other threads:[~2004-05-05 14:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-05  5:33 [Bug target/15289] New: " amodra at bigpond dot net dot au
2004-05-05  6:30 ` [Bug target/15289] " pinskia at gcc dot gnu dot org
2004-05-05 14:24 ` amodra at bigpond dot net dot au [this message]
2004-05-27 21:47 ` [Bug rtl-optimization/15289] reload error with non-lowpart subregs amodra at bigpond dot net dot au
2004-06-16 22:03 ` [Bug rtl-optimization/15289] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-08-19 20:53 ` mmitchel at gcc dot gnu dot org
2004-08-26 12:19 ` hubicka at gcc dot gnu dot org
2004-08-29 19:02 ` mmitchel at gcc dot gnu dot org
2004-10-31  2:08 ` [Bug rtl-optimization/15289] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2004-11-28 13:08 ` steven at gcc dot gnu dot org
2004-11-28 13:27 ` amodra at bigpond dot net dot au
2004-11-28 17:54 ` giovannibajo at libero dot it
2004-11-29 21:25 ` rth at gcc dot gnu dot org
2004-12-01 18:14 ` cvs-commit at gcc dot gnu dot org
2004-12-01 18:16 ` cvs-commit at gcc dot gnu dot org
2004-12-02 19:16 ` cvs-commit at gcc dot gnu dot org
2004-12-03 23:26 ` rth at gcc dot gnu dot org
2004-12-05  5:21 ` cvs-commit at gcc dot gnu dot org
2004-12-05  5:22 ` rth at gcc dot gnu dot org
2004-12-05  5:38 ` pinskia at gcc dot gnu dot 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=20040505142422.32571.qmail@sources.redhat.com \
    --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).