public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/47725] [x32] error: unable to find a register to spill in class DIREG
Date: Mon, 14 Feb 2011 01:08:00 -0000	[thread overview]
Message-ID: <bug-47725-4-AlBDcG5jFF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-47725-4@http.gcc.gnu.org/bugzilla/>

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-14 01:07:41 UTC ---
Combine changes

(insn 2 4 3 2 (set (reg/v/f:DI 59 [ pc_target ])
        (zero_extend:DI (reg:SI 5 di [ pc_target ]))) u.i:9 115
{*zero_extendsidi2_rex64}
     (expr_list:REG_DEAD (reg:SI 5 di [ pc_target ])
        (nil)))
...
(insn 11 10 14 2 (parallel [
            (set (reg:DI 64)
                (const_int 0 [0]))
            (set (reg/f:DI 62)
                (plus:DI (ashift:DI (reg:DI 64)
                        (const_int 3 [0x3]))
                    (reg/f:DI 60)))
            (set (mem/s/c:BLK (reg/f:DI 60) [0 context+0 S72 A64])
                (const_int 0 [0]))
            (use (reg:DI 63))
            (use (reg:DI 64))
        ]) u.i:11 874 {*rep_stosdi_rex64}
     (expr_list:REG_DEAD (reg:DI 63)
        (expr_list:REG_UNUSED (reg:DI 64)
            (expr_list:REG_UNUSED (reg/f:DI 62)
                (nil)))))

(insn 14 11 16 2 (set (mem/s/f/c:SI (plus:DI (reg/f:DI 20 frame)
                (const_int -8 [0xfffffffffffffff8])) [3 context.ra+0 S4 A64])
        (subreg/s/u:SI (reg/v/f:DI 59 [ pc_target ]) 0)) u.i:12 64
{*movsi_internal}
     (expr_list:REG_DEAD (reg/v/f:DI 59 [ pc_target ])
        (nil)))

to

(insn 11 10 14 2 (parallel [
            (set (reg:DI 64) 
                (const_int 0 [0]))
            (set (reg/f:DI 62) 
                (plus:DI (ashift:DI (reg:DI 64) 
                        (const_int 3 [0x3]))
                    (reg/f:DI 60)))
            (set (mem/s/c:BLK (reg/f:DI 60) [0 context+0 S72 A64])
                (const_int 0 [0]))
            (use (reg:DI 63))
            (use (reg:DI 64))
        ]) u.i:11 874 {*rep_stosdi_rex64}
     (expr_list:REG_DEAD (reg:DI 63) 
        (expr_list:REG_UNUSED (reg:DI 64) 
            (expr_list:REG_UNUSED (reg/f:DI 62) 
                (nil)))))

(insn 14 11 16 2 (set (mem/s/f/c:SI (plus:DI (reg/f:DI 20 frame)
                (const_int -8 [0xfffffffffffffff8])) [3 context.ra+0 S4 A64])
        (reg:SI 5 di [ pc_target ])) u.i:12 64 {*movsi_internal}
     (expr_list:REG_DEAD (reg:SI 5 di [ pc_target ])
        (nil)))


Since *rep_stosdi_rex64 needs the RDI register, it kills
reload.  Eric, should combine move hard register?


  reply	other threads:[~2011-02-14  1:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14  1:07 [Bug target/47725] New: " hjl.tools at gmail dot com
2011-02-14  1:08 ` hjl.tools at gmail dot com [this message]
2011-02-14  1:31 ` [Bug target/47725] " hjl.tools at gmail dot com
2011-02-14  3:18 ` [Bug middle-end/47725] " hjl.tools at gmail dot com
2011-02-14  8:16 ` ebotcazou at gcc dot gnu.org
2011-02-14 14:08 ` hjl.tools at gmail dot com
2011-02-14 14:21 ` hjl.tools at gmail dot com
2011-02-14 19:01 ` hjl at gcc dot gnu.org
2011-02-14 19:43 ` hjl.tools at gmail dot com
2011-02-15 17:28 ` hjl at gcc dot gnu.org
2011-02-15 20:30 ` hjl at gcc dot gnu.org
2011-02-16 20:22 ` hjl at gcc dot gnu.org
2011-03-18  0:45 ` hjl at gcc dot gnu.org
2011-03-18  5:00 ` hjl at gcc dot gnu.org
2011-04-02  6:04 ` hjl at gcc dot gnu.org
2011-04-02  6:05 ` hjl at gcc dot gnu.org
2011-06-20 14:54 ` hjl at gcc dot gnu.org
2011-06-20 16:02 ` ebotcazou at gcc dot gnu.org
2011-06-20 17:04 ` hjl at gcc dot gnu.org
2011-07-22  6:02 ` pbone at csse dot unimelb.edu.au
2011-07-22  6:07 ` pbone at csse dot unimelb.edu.au
2011-07-28 17:03 ` ubizjak at gmail dot com
2011-07-28 17:07 ` ubizjak at gmail dot com

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-47725-4-AlBDcG5jFF@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).