public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/16800] New: PowerPC - Unnecessary rldicl Date: Wed, 28 Jul 2004 17:01:00 -0000 [thread overview] Message-ID: <20040728170038.16800.steinmtz@us.ibm.com> (raw) Description: A non-optimal code sequence is illustrated. The rldicl noted below is not needed (and doesn't occur for the "==" comparison). Duplicate using gcc 3.5 and command line: gcc -O3 -m64 -c test.c Testcase: long l1,l2; float f1,f2,f3,f4; void logic_func4() { l1 = (f1 == f2); l2 = (f3 > f4); } Assembly: .logic_func4: ld 8,.LC5@toc(2) ld 6,.LC4@toc(2) lfs 13,0(8) lfs 11,0(6) ld 5,.LC1@toc(2) ld 4,.LC2@toc(2) lfs 12,0(5) fcmpu 7,11,13 lfs 0,0(4) ld 11,.LC0@toc(2) ld 10,.LC3@toc(2) fcmpu 6,12,0 mfcr 3 rlwinm 3,3,30,1 rldicl 0,3,0,32 <-- Unnecessary. mfcr 9 rlwinm 9,9,27,1 std 0,0(10) std 9,0(11) blr -- Summary: PowerPC - Unnecessary rldicl Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: enhancement Priority: P1 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: steinmtz at us dot ibm dot com CC: gcc-bugs at gcc dot gnu dot org,steinmtz at us dot ibm dot com GCC build triplet: powerpc64-linux GCC host triplet: powerpc64-linux GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16800
next reply other threads:[~2004-07-28 17:00 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-28 17:01 gcc-bugzilla at gcc dot gnu dot org [this message] 2004-07-28 17:39 ` [Bug target/16800] " bangerth at dealii dot org 2004-08-02 1:02 ` pinskia at gcc dot gnu dot org 2004-11-01 0:27 ` pinskia at gcc dot gnu dot org 2004-11-22 22:28 ` steinmtz at us dot ibm dot com 2004-11-24 7:00 ` amodra at bigpond dot net dot au 2004-11-24 9:41 ` amodra at bigpond dot net dot au 2004-11-24 15:22 ` dje at watson dot ibm dot com 2004-11-27 23:01 ` cvs-commit at gcc dot gnu dot org 2004-11-28 0:07 ` pinskia 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=20040728170038.16800.steinmtz@us.ibm.com \ --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).