This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/65010] ppc backend generates unnecessary signed extension


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; }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]