From: "Paulo J. Matos" <pocmatos@gmail.com>
To: gcc@gcc.gnu.org
Subject: Re: splitting add instructions
Date: Tue, 19 Jul 2011 15:06:00 -0000 [thread overview]
Message-ID: <j045is$pna$1@dough.gmane.org> (raw)
In-Reply-To: <4E246502.6070107@redhat.com>
On 18/07/11 17:53, Richard Henderson wrote:
>
> Otherwise, have a look at the mn10300 and rx ports.
What's the idea behind the rx port *_flags alternative define_insn?
For example:
(define_insn "abssi2"
[(set (match_operand:SI 0 "register_operand" "=r,r")
(abs:SI (match_operand:SI 1 "register_operand" "0,r")))
(clobber (reg:CC CC_REG))]
""
"@
abs\t%0
abs\t%1, %0"
[(set_attr "length" "2,3")]
)
(define_insn "*abssi2_flags"
[(set (match_operand:SI 0 "register_operand" "=r,r")
(abs:SI (match_operand:SI 1 "register_operand" "0,r")))
(set (reg CC_REG)
(compare (abs:SI (match_dup 1))
(const_int 0)))]
;; Note - although the ABS instruction does set the O bit in the
processor
;; status word, it does not do so in a way that is comparable with
the CMP
;; instruction. Hence we use CC_ZSmode rather than CC_ZSOmode.
"reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
"@
abs\t%0
abs\t%1, %0"
[(set_attr "length" "2,3")]
)
What's the point of the second define insn? The first insn seems to take
us from expansion to asm generation so I can't see where the second one
will come into play except in an expansion after reload but that doesn't
happen, right?
--
PMatos
next prev parent reply other threads:[~2011-07-19 14:50 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 16:49 Paulo J. Matos
2011-07-18 16:59 ` Richard Henderson
2011-07-18 17:31 ` Paul Koning
2011-07-18 21:20 ` Richard Henderson
2011-07-19 8:27 ` Paulo J. Matos
2011-07-19 10:21 ` Paulo J. Matos
2011-07-19 15:42 ` Richard Henderson
2011-07-19 15:58 ` Paulo J. Matos
2011-07-19 16:08 ` Paulo J. Matos
2011-07-19 16:43 ` Richard Henderson
2011-07-19 12:57 ` Paul Koning
2011-07-19 8:30 ` Paulo J. Matos
2011-07-19 10:30 ` Paulo J. Matos
2011-07-19 10:52 ` Paulo J. Matos
2011-07-19 15:06 ` Paulo J. Matos [this message]
2011-07-19 15:09 ` DJ Delorie
2011-07-19 15:21 ` Paulo J. Matos
2011-07-19 15:42 ` Richard Henderson
2011-07-19 15:42 ` Paulo J. Matos
2011-07-18 17:29 ` Ian Lance Taylor
2011-07-19 8:49 ` Paulo J. Matos
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='j045is$pna$1@dough.gmane.org' \
--to=pocmatos@gmail.com \
--cc=gcc@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).