[LLVMbugs] [Bug 4484] New: yet another stackifier bug with inline	asm
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Tue Jun 30 04:31:52 PDT 2009
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=4484
           Summary: yet another 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
---------------------------------------------
declare x86_fp80 @ceil()
declare void @test(x86_fp80)
define void @test2(x86_fp80 %a) {
entry:
        %0 = call x86_fp80 @ceil()
        call void asm sideeffect "fistpl $0", "{st},~{st}"(x86_fp80 %a)
        call void @test(x86_fp80 %0)
        ret void
}
---------------------------------------------
Fails with
llc: /usr/local/espindola/llvm/llvm/lib/Target/X86/X86FloatingPoint.cpp:1149:
void<unnamed>::FPS::handleSpecialFP(llvm::ilist_iterator<llvm::MachineInstr>&):
Assertion `StackTop == 1 && FirstFPRegOp == getStackEntry(0) && "Top of stack
not the right register for RET!"' failed.
-- 
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