[llvm-bugs] [Bug 24549] ARM backend crash when compiling half-precision FP op without hardware FP

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 19 04:23:21 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=24549

Renato Golin <renato.golin at linaro.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |renato.golin at linaro.org
         Resolution|---                         |FIXED

--- Comment #5 from Renato Golin <renato.golin at linaro.org> ---
The test now produces:

    push    {r4, r5, r6, lr}
    ldrh    r0, [r0]
    mov    r4, r2
    mov    r5, r1
    bl    __aeabi_h2f
    mov    r6, r0
    ldrh    r0, [r5]
    bl    __aeabi_h2f
    mov    r1, r0
    mov    r0, r6
    bl    __aeabi_fadd
    bl    __aeabi_f2h
    strh    r0, [r4]
    pop    {r4, r5, r6, pc}

Which, though a bit ugly, seems correct.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160119/e41eaa53/attachment.html>


More information about the llvm-bugs mailing list