This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53087] [powerpc] Poor code from cstore expander
- From: "dje at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Apr 2012 00:40:28 +0000
- Subject: [Bug target/53087] [powerpc] Poor code from cstore expander
- Auto-submitted: auto-generated
- References: <bug-53087-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53087
--- Comment #6 from David Edelsohn <dje at gcc dot gnu.org> 2012-04-24 00:40:28 UTC ---
GCC 4.1 produced:
lis 9,0xcf8
li 0,1
ori 9,9,63
slw 0,0,3
and 0,0,9
neg 0,0
srwi 3,0,31
blr
The branch code is better than the code using mfcr, but the straight-line code
from XLC or GCC avoiding CR is better than both.