[LLVMbugs] [Bug 4485] New: stackifier bug with inline asm

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jun 30 08:09:34 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4485

           Summary: stackifier bug with inline asm
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: rafael.espindola at gmail.com
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


the test

-------------------------------------------------------
define void @test(x86_fp80* %a) {
entry:
        %0 = load x86_fp80* %a, align 16
        %1 = fmul x86_fp80 %0, 0xK4006B400000000000000
        %2 = fmul x86_fp80 %1, 0xK4012F424000000000000
        tail call void asm sideeffect "fistpl $0", "{st},~{st}"(x86_fp80 %2)
        %3 = load x86_fp80* %a, align 16
        %4 = fmul x86_fp80 %3, 0xK4006B400000000000000
        %5 = fmul x86_fp80 %4, 0xK4012F424000000000000
        tail call void asm sideeffect "fistpl $0", "{st},~{st}"(x86_fp80 %5)
        ret void
}
----------------------------------------------------

Fails with

Assertion `StackTop == 1 && FirstFPRegOp == getStackEntry(0) && "Top of stack
not the right register for RET!"


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list