[LLVMbugs] [Bug 2617] New: A code generation error on ia64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 31 03:25:07 PDT 2008


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

           Summary: A code generation error on ia64
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rich at pennware.com
                CC: llvmbugs at cs.uiuc.edu


The following fails on the ia64 with llc -march ia64:

; ModuleID = 't0039.ubc'

define i32 @main(...) {
entry:
        %retval = alloca i32            ; <i32*> [#uses=2]
        store i32 0, i32* %retval
        %fn = alloca void ()*           ; <void ()**> [#uses=2]
        %f = alloca [1 x void ()*]              ; <[1 x void ()*]*> [#uses=1]
        getelementptr [1 x void ()*]* %f, i32 0, i32 1          ; <void ()**>:0
[#uses=1]
        bitcast void ()** %0 to void ()*                ; <void ()*>:1
[#uses=1]
        store void ()* %1, void ()** %fn
        load void ()** %fn              ; <void ()*>:2 [#uses=1]
        call void %2( )
        br label %return

return:         ; preds = %entry
        load i32* %retval               ; <i32>:3 [#uses=1]
        ret i32 %3
}

[~/ellcc/ellcc] main% llc -f -march ia64 t0039.ubc
llc: /home/rich/llvm-trunk-new/lib/Target/TargetRegisterInfo.cpp:72: const
llvm::TargetRegisterClass*
llvm::TargetRegisterInfo::getPhysicalRegisterRegClass(unsigned int, llvm::MVT)
const: Assertion `false && "Couldn't find the register class"' failed.
llc[0x8b5105e]
...


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