[Bug target/17381] Unnecessary register move for float extend

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 27 22:04:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17381

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Trunk as well as the native 4.8.3 on RHEL 7.1 do not emit the redundant fmr
instruction.  Below is what I get today.  Closing as fixed.

$ /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -O2 -S -Wall -Wextra
-Wpedantic -m32 -o/dev/stdout ~/tmp/t.c
        .file   "t.c"
        .machine power4
        .section        ".text"
        .align 2
        .p2align 4,,15
        .globl test1
        .type   test1, @function
test1:
        fmr 0,1
        lis 9,f@ha
        stfs 1,f@l(9)
        lis 9,d@ha
        stfd 0,d@l(9)
        blr
        .size   test1,.-test1
        .comm   f,4,4
        .comm   d,8,8
        .ident  "GCC: (GNU) 6.0.0 20160125 (experimental)"
        .gnu_attribute 4, 1
        .section        .note.GNU-stack,"",@progbits


More information about the Gcc-bugs mailing list