[Bug target/65010] ppc backend generates unnecessary signed extension
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 24 23:18:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65010
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Also seen on ppc64. For the somewhat simpler test case (below) recent trunk
emits the following (on both ppc64 and ppc64le):
foobar:
.quad .L.foobar,.TOC.@tocbase,0
.previous
.type foobar, @function
.L.foobar:
addi 3,3,1
extsw 3,3
blr
.long 0
.byte 0,0,0,0,0,0,0,0
.size foobar,.-.L.foobar
.ident "GCC: (GNU) 5.0.0 20150221 (experimental)"
int foobar (signed char c) { return c + 1; }
More information about the Gcc-bugs
mailing list