public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kazu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/27477] The H8 port doesn't build
Date: Wed, 10 May 2006 15:00:00 -0000	[thread overview]
Message-ID: <20060510150034.12459.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27477-5009@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from kazu at gcc dot gnu dot org  2006-05-10 15:00 -------
The combiner seems to be doing something strange:

(insn 13 12 16 2 (set (reg:HI 21)
        (eq:HI (cc0)
            (const_int 0 [0x0]))) 237 {*bstzhireg} (nil)
    (nil))

(insn 16 13 17 2 (set (cc0)
        (reg:HI 21)) 114 {tsthi} (insn_list:REG_DEP_TRUE 13 (nil))
    (nil))

(jump_insn 17 16 19 2 (set (pc)
        (if_then_else (eq (cc0)
                (const_int 0 [0x0]))
            (label_ref:SI 39)
            (pc))) 181 {branch_true} (nil)
    (expr_list:REG_BR_PROB (const_int 5347 [0x14e3])
        (nil)))

is transformed to

(insn 16 13 17 2 (set (pc)
        (if_then_else (ne (cc0)
                (const_int 0 [0x0]))
            (label_ref:SI 39)
            (pc))) 181 {branch_true} (nil)
    (nil))

(jump_insn 17 16 19 2 (set (reg:HI 21)
        (eq:HI (cc0)
            (const_int 0 [0x0]))) 237 {*bstzhireg} (nil)
    (expr_list:REG_BR_PROB (const_int 5347 [0x14e3])
        (nil)))

Note that the combiner puts a branch instruction one insn
before the last insn in the basic block.


-- 


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


  parent reply	other threads:[~2006-05-10 15:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-08  4:40 [Bug bootstrap/27477] New: " kazu at gcc dot gnu dot org
2006-05-08  4:42 ` [Bug bootstrap/27477] " kazu at gcc dot gnu dot org
2006-05-08  7:09 ` [Bug rtl-optimization/27477] " pinskia at gcc dot gnu dot org
2006-05-08 17:13 ` pinskia at gcc dot gnu dot org
2006-05-08 18:55 ` kazu at gcc dot gnu dot org
2006-05-09 21:38 ` kazu at gcc dot gnu dot org
2006-05-10 14:21 ` kazu at gcc dot gnu dot org
2006-05-10 15:00 ` kazu at gcc dot gnu dot org [this message]
2006-05-17 21:35 ` kazu at gcc dot gnu dot org
2006-05-17 21:38 ` kazu at gcc dot gnu dot org
2006-05-17 21:38 ` kazu 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=20060510150034.12459.qmail@sourceware.org \
    --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).