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/53988] New: [SH] tst Rm,Rn not used for QI/HImode Date: Tue, 17 Jul 2012 00:02:00 -0000 [thread overview] Message-ID: <bug-53988-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53988 Bug #: 53988 Summary: [SH] tst Rm,Rn not used for QI/HImode Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: olegendo@gcc.gnu.org Target: sh*-*-* The following functions: int test_00 (unsigned char* a, unsigned char* b, int c, int d) { if (*a & *b) return c; return d; } int test_01 (char* a, char* b, int c, int d) { if (*a & *b) return c; return d; } get compiled to: mov.b @r4,r1 ! 10 *extendqisi2_compact_snd mov.b @r5,r0 ! 11 *extendqisi2_compact_snd and r1,r0 ! 12 *andsi_compact/4 tst #255,r0 ! 15 tstqi_t_zero bf .L9 ! 16 branch_false mov r7,r6 ! 7 movsi_ie/2 .L9: rts ! 49 *return_i mov r6,r0 ! 24 movsi_ie/2 which should actually result in: mov.b @r4,r1 mov.b @r5,r2 tst r1,r2 bf .L9 mov r7,r6 .L9: rts mov r6,r0 The same happens for QImode and HImode.
next reply other threads:[~2012-07-17 0:02 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-17 0:02 olegendo at gcc dot gnu.org [this message] 2012-09-03 10:02 ` [Bug target/53988] " olegendo at gcc dot gnu.org 2012-10-31 22:09 ` olegendo at gcc dot gnu.org 2012-11-05 21:11 ` olegendo at gcc dot gnu.org 2014-12-29 19:03 ` olegendo at gcc dot gnu.org 2015-01-14 23:47 ` olegendo at gcc dot gnu.org 2015-01-19 22:36 ` olegendo at gcc dot gnu.org 2015-03-10 8:10 ` olegendo at gcc dot gnu.org 2015-03-10 8:18 ` olegendo at gcc dot gnu.org 2015-03-10 8:19 ` 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-53988-4@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).