Skip to content

[ia64] code generation error #2989

@llvmbot

Description

@llvmbot
Bugzilla Link 2617
Resolution LATER
Resolved on Oct 16, 2008 01:17
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

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 ; :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]
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions