public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/55943] [4.6/4.7/4.8/4.9 Regression] ICE in gen_reg_rtx
Date: Sat, 16 Mar 2013 13:18:00 -0000	[thread overview]
Message-ID: <bug-55943-4-NA2LicjyxL@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55943-4@http.gcc.gnu.org/bugzilla/>


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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|ia64-*-*                    |ia64-*-*,hppa*64*-*-*
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> 2013-03-16 13:17:17 UTC ---
I believe the problem is in this hunk of code:

  /* See if we can coerce the target into moving both values at once.  */

  /* Move floating point as parts.  */
  if (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT
      && can_create_pseudo_p ()
      && optab_handler (mov_optab, GET_MODE_INNER (mode)) != CODE_FOR_nothing)
    try_int = false;
  /* Not possible if the values are inherently not adjacent.  */
  else if (GET_CODE (x) == CONCAT || GET_CODE (y) == CONCAT)
    try_int = false;
  /* Is possible if both are registers (or subregs of registers).  */
  else if (register_operand (x, mode) && register_operand (y, mode))
    try_int = true;
  /* If one of the operands is a memory, and alignment constraints
     are friendly enough, we may be able to do combined memory operations.
     We do not attempt this if Y is a constant because that combination is
     usually better with the by-parts thing below.  */
  else if ((MEM_P (x) ? !CONSTANT_P (y) : MEM_P (y))
           && (!STRICT_ALIGNMENT
               || get_mode_alignment (mode) == BIGGEST_ALIGNMENT))
    try_int = true;
  else
    try_int = false;

When the inner mode is smaller than a word, a pseudo is needed to extract
the value.  The asm causes this to occur after reload starts, causing the
ICE.


  parent reply	other threads:[~2013-03-16 13:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 17:35 [Bug middle-end/55943] New: " schwab@linux-m68k.org
2013-01-14 13:24 ` [Bug middle-end/55943] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-14 15:45 ` [Bug middle-end/55943] [4.6/4.7/4.8 " jakub at gcc dot gnu.org
2013-02-07 21:13 ` aldyh at gcc dot gnu.org
2013-02-08 15:10 ` rguenth at gcc dot gnu.org
2013-03-16 13:18 ` danglin at gcc dot gnu.org [this message]
2013-03-16 13:20 ` [Bug middle-end/55943] [4.6/4.7/4.8/4.9 " danglin at gcc dot gnu.org
2013-03-22 14:42 ` jakub at gcc dot gnu.org
2013-05-31 10:58 ` [Bug middle-end/55943] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2013-10-16  9:48 ` jakub at gcc dot gnu.org
2014-03-27  1:04 ` danglin at gcc dot gnu.org
2014-05-22  9:01 ` [Bug middle-end/55943] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:25 ` [Bug rtl-optimization/55943] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:14 ` [Bug rtl-optimization/55943] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 19:52 ` [Bug rtl-optimization/55943] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:26 ` jakub 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-55943-4-NA2LicjyxL@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).