public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/27971] eliminate shift in array[(x>>2)&3] Date: Fri, 09 Jun 2006 06:43:00 -0000 [thread overview] Message-ID: <20060609062000.17801.qmail@sourceware.org> (raw) In-Reply-To: <bug-27971-5748@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-09 06:20 ------- Here is the RTL we get on PPC: (insn 6 9 7 2 (set (reg/v:SI 120 [ x ]) (reg:SI 3 r3 [ x ])) 327 {*movsi_internal1} (nil) (expr_list:REG_DEAD (reg:SI 3 r3 [ x ]) (expr_list:REG_EQUIV (mem/c/i:SI (plus:SI (reg/f:SI 67 ap) (const_int 24 [0x18])) [4 x+0 S4 A32]) (nil)))) ... (insn 13 12 14 2 (set (reg:SI 124) (lshiftrt:SI (reg/v:SI 120 [ x ]) (const_int 2 [0x2]))) 195 {lshrsi3_no_power} (insn_list:REG_DEP_TRUE 6 (nil)) (expr_list:REG_DEAD (reg/v:SI 120 [ x ]) (nil))) (insn 14 13 15 2 (parallel [ (set (reg:SI 125) (and:SI (reg:SI 124) (const_int 3 [0x3]))) (clobber (scratch:CC)) ]) 146 {andsi3} (insn_list:REG_DEP_TRUE 13 (nil)) (expr_list:REG_DEAD (reg:SI 124) (expr_list:REG_UNUSED (scratch:CC) (nil)))) (insn 15 14 17 2 (set (reg:SI 126) (ashift:SI (reg:SI 125) (const_int 2 [0x2]))) 189 {ashlsi3_no_power} (insn_list:REG_DEP_TRUE 14 (nil)) (expr_list:REG_DEAD (reg:SI 125) (nil))) Which gets reduced to: (insn 15 14 17 2 (parallel [ (set (reg:SI 126) (and:SI (reg:SI 3 r3 [ x ]) (const_int 12 [0xc]))) (clobber (scratch:CC)) ]) 146 {andsi3} (nil) (expr_list:REG_UNUSED (scratch:CC) (expr_list:REG_DEAD (reg:SI 3 r3 [ x ]) (nil)))) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27971
next prev parent reply other threads:[~2006-06-09 6:20 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-06-09 6:18 [Bug pending/27971] New: " dean at arctic dot org 2006-06-09 6:20 ` [Bug target/27971] " pinskia at gcc dot gnu dot org 2006-06-09 6:43 ` pinskia at gcc dot gnu dot org [this message] 2007-11-28 23:06 ` raksit at google dot com 2007-12-05 19:28 ` raksit at google dot com 2008-01-11 4:51 ` raksit at gcc dot gnu dot org 2008-01-14 19:57 ` raksit 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=20060609062000.17801.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: 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).