[LLVMbugs] [Bug 10464] New: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 24 12:25:36 PDT 2011


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

           Summary: Assertion `isa<X>(Val) && "cast<Ty>() argument of
                    incompatible type!"' failed.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nadav.rotem at intel.com
                CC: llvmbugs at cs.uiuc.edu


llc:
/nfs/iil/disks/cvcc/nrotem/llvm/readonly-llvm-head/include/llvm/Support/Casting.h:194:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ShuffleVectorSDNode, Y = llvm::SDValue]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
0  llc             0x000000000153ff42
1  llc             0x00000000015404d0
2  libpthread.so.0 0x00002aaaaabd4d60
3  libc.so.6       0x00002aaaab274f45 gsignal + 53
4  libc.so.6       0x00002aaaab276340 abort + 272
5  libc.so.6       0x00002aaaab26e486 __assert_fail + 246
6  llc             0x0000000000c1ec10
llvm::cast_retty<llvm::ShuffleVectorSDNode, llvm::SDValue>::ret_type
llvm::cast<llvm::ShuffleVectorSDNode, llvm::SDValue>(llvm::SDValue const&) + 74
7  llc             0x0000000000eb1031
llvm::X86TargetLowering::LowerVECTOR_SHUFFLE(llvm::SDValue,
llvm::SelectionDAG&) const + 5295
8  llc             0x0000000000eb5867
llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 421
9  llc             0x000000000103a8f2 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 4088
10 llc             0x000000000104f987 (anonymous
namespace)::SelectionDAGLegalize::LegalizeDAG() + 179
11 llc             0x000000000104faa5 llvm::SelectionDAG::Legalize() + 49
12 llc             0x0000000000ff709c
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2424
13 llc             0x0000000000ff8e02
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 230
14 llc             0x0000000000ff9764
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400
15 llc             0x0000000000ff9ce3
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849
16 llc             0x000000000114490d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
17 llc             0x000000000147a237
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
18 llc             0x000000000147a42f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
19 llc             0x0000000001479ee3
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
20 llc             0x000000000147b698 llvm::PassManagerImpl::run(llvm::Module&)
+ 116
21 llc             0x000000000147b6fb llvm::PassManager::run(llvm::Module&) +
33
22 llc             0x0000000000ab6424 main + 2410
23 libc.so.6       0x00002aaaab262304 __libc_start_main + 244
24 llc             0x0000000000ab4b69
Stack dump:
0.    Program arguments: llc fail_101538.ll 
1.    Running pass 'Function Pass Manager' on module 'fail_101538.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@autogen_101538_1000'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"

define void @autogen_101538_1000() {
BB:
  %I = insertelement <16 x i64> undef, i64 480971, i32 7
  %Shuff8 = shufflevector <16 x i64> %I, <16 x i64> undef, <16 x i32> <i32
undef, i32 undef, i32 29, i32 31, i32 undef, i32 3, i32 5, i32 7, i32 9, i32
undef, i32 13, i32 15, i32 17, i32 undef, i32 21, i32 23>
  br label %CF

CF:                                               ; preds = %CF, %BB
  br i1 undef, label %CF, label %CF78

CF78:                                             ; preds = %CF78, %CF
  br i1 undef, label %CF78, label %CF79

CF79:                                             ; preds = %CF79, %CF78
  br i1 undef, label %CF79, label %CF80

CF80:                                             ; preds = %CF80, %CF79
  %Shuff50 = shufflevector <16 x i64> undef, <16 x i64> %Shuff8, <16 x i32>
<i32 24, i32 26, i32 28, i32 30, i32 0, i32 2, i32 4, i32 6, i32 8, i32 undef,
i32 12, i32 14, i32 16, i32 undef, i32 undef, i32 22>
  br label %CF80
}

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