[Bug target/53087] Poor code for conversion from _Bool to int
steven at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 23 17:13:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53087
--- Comment #2 from Steven Bosscher <steven at gcc dot gnu.org> 2012-04-23 17:13:28 UTC ---
Expected code:
foo:
.quad .L.foo,.TOC.@tocbase,0
.previous
.type foo, @function
.L.foo:
lwz 9,0(3)
cmplwi 7,9,27
bgt 7,.L4
li 8,1
lis 10,0xcf8
sld 9,8,9
ori 10,10,63
and. 8,9,10
li 3,1
bnelr 0
.L4:
li 3,0
blr
More information about the Gcc-bugs
mailing list