Skip to content

Inline asm crash #1686

@llvmbot

Description

@llvmbot
Bugzilla Link 1314
Resolution FIXED
Resolved on Feb 22, 2010 12:54
Version trunk
OS Linux
Blocks #1234
Attachments Original bytecode file that caused assertion failure with llc, Bytecode produced by bugpoint, Stdout and stderr from running bugpoint
Reporter LLVM Bugzilla Contributor

Extended Description

I am getting an assertion failure when I run "llc -f -o /dev/null code.bc"
code.bc has been formed by linking other bytecode files that were all generated
by llvm-gcc and transformed using opt. All uses of opt passed the -verify option.

I ran llc in gdb and it stops with:

llc:
/home/data2/lefever/work/llvm-cvs-070306/include/llvm/Support/Casting.h:199:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ConstantSDNode, Y = llvm::SDOperand]: Assertion `isa(Val) &&
"cast() argument of incompatible type!"' failed.

The stack trace at that point is:

(gdb) bt
#​0 0x0000003de682e37d in raise () from /lib64/tls/libc.so.6
#​1 0x0000003de682faae in abort () from /lib64/tls/libc.so.6
#​2 0x0000003de6827c31 in __assert_fail () from /lib64/tls/libc.so.6
#​3 0x000000000082829c in llvm::cast<llvm::ConstantSDNode, llvm::SDOperand>
(Val=@0x166eb20) at
/home/data2/lefever/work/llvm-cvs-070306/include/llvm/Support/Casting.h:199
#​4 0x0000000000a6b18d in llvm::ScheduleDAG::EmitNode (this=0x1660180,
Node=0x1672330, VRBaseMap=@0x7fbfffe5e0) at ScheduleDAG.cpp:543
#​5 0x0000000000a6b67b in llvm::ScheduleDAG::EmitSchedule (this=0x1660180) at
ScheduleDAG.cpp:616
#​6 0x00000000009e4e16 in (anonymous namespace)::ScheduleDAGRRList::Schedule
(this=0x1660180) at ScheduleDAGRRList.cpp:114
#​7 0x0000000000a6b7e9 in llvm::ScheduleDAG::Run (this=0x1660180) at
ScheduleDAG.cpp:644
#​8 0x0000000000a18c1c in llvm::SelectionDAGISel::ScheduleAndEmitDAG
(this=0x1011d20, DAG=@0x7fbfffec70) at SelectionDAGISel.cpp:4528
#​9 0x00000000008d6052 in (anonymous
namespace)::X86DAGToDAGISel::InstructionSelectBasicBlock (this=0x1011d20,
DAG=@0x7fbfffec70) at X86ISelDAGToDAG.cpp:476
#​10 0x0000000000a1823d in llvm::SelectionDAGISel::CodeGenAndEmitDAG
(this=0x1011d20, DAG=@0x7fbfffec70) at SelectionDAGISel.cpp:4387
#​11 0x0000000000a18317 in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x1011d20, LLVMBB=0x12780c0, MF=@0x15ee620, FuncInfo=@0x7fbfffee50) at
SelectionDAGISel.cpp:4405
#​12 0x0000000000a16958 in llvm::SelectionDAGISel::runOnFunction (this=0x1011d20,
Fn=@0x1058130) at SelectionDAGISel.cpp:4090
#​13 0x000000000098b6a9 in (anonymous namespace)::X86DAGToDAGISel::runOnFunction
(this=0x1011d20, Fn=@0x1058130) at X86ISelDAGToDAG.cpp:122
#​14 0x0000000000bd90b2 in llvm::FPPassManager::runOnFunction (this=0x1013020,
F=@0x1058130) at PassManager.cpp:1047
#​15 0x0000000000bd8e7c in llvm::FunctionPassManagerImpl::run (this=0x119be60,
F=@0x1058130) at PassManager.cpp:1006
#​16 0x0000000000bd8d76 in llvm::FunctionPassManager::run (this=0x7fbffff1d0,
F=@0x1058130) at PassManager.cpp:951
#​17 0x00000000007bd037 in main (argc=5, argv=0x7fbffff338) at llc.cpp:290

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] insteadllvm:codegen

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions