public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55303] [SH] Add support for clips / clipu instructions Date: Sat, 02 Mar 2013 16:24:00 -0000 [thread overview] Message-ID: <bug-55303-4-xMyPqIjNLt@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55303-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55303 --- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> 2013-03-02 16:23:57 UTC --- For non-SH2A targets there is an opportunity to generate better insn sequences for the special case unsigned int test (unsigned int a) { return a > 1 ? 1 : a; } on SH2A: tst r4,r4 movrt r0 if zero-displacement branches are not good: tst r4,r4 mov #-1,r0 negc r0,r0 if zero-displacement branches are good: tst r4,r4 bt 0f mov #1,r1 0f: This can be done by implementing a pattern (umin:SI (match_operand:SI 1 "arith_reg_operand") (const_int 1)) as it is already done for SH2A in attachment 29567.
next prev parent reply other threads:[~2013-03-02 16:24 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-11-13 0:31 [Bug target/55303] New: " olegendo at gcc dot gnu.org 2013-03-02 16:17 ` [Bug target/55303] " olegendo at gcc dot gnu.org 2013-03-02 16:24 ` olegendo at gcc dot gnu.org [this message] 2013-05-06 5:48 ` olegendo 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-55303-4-xMyPqIjNLt@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: linkBe 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).