[LLVMbugs] [Bug 10481] New: Assertion: `TLI.getTypeAction(*DAG.getContext(), Node->getValueType(i)) == TargetLowering::TypeLegal && "Unexpected illegal type!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 25 10:42:52 PDT 2011


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

           Summary: Assertion: `TLI.getTypeAction(*DAG.getContext(),
                    Node->getValueType(i)) == TargetLowering::TypeLegal &&
                    "Unexpected illegal 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: LegalizeDAG.cpp:781:
llvm::SDValue<unnamed>::SelectionDAGLegalize::LegalizeOp(llvm::SDValue):
Assertion `TLI.getTypeAction(*DAG.getContext(), Node->getValueType(i)) ==
TargetLowering::TypeLegal && "Unexpected illegal type!"' failed.
0  llc             0x000000000153ffea
1  llc             0x0000000001540578
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             0x0000000001039ad7 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 317
7  llc             0x000000000104fa27 (anonymous
namespace)::SelectionDAGLegalize::LegalizeDAG() + 179
8  llc             0x000000000104fb45 llvm::SelectionDAG::Legalize() + 49
9  llc             0x0000000000ff713c
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2424
10 llc             0x0000000000ff8ea2
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 230
11 llc             0x0000000000ff9804
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400
12 llc             0x0000000000ff9d83
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849
13 llc             0x00000000011449ad
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
14 llc             0x000000000147a2bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
15 llc             0x000000000147a4b3
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
16 llc             0x0000000001479f67
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
17 llc             0x000000000147b71c llvm::PassManagerImpl::run(llvm::Module&)
+ 116
18 llc             0x000000000147b77f llvm::PassManager::run(llvm::Module&) +
33
19 llc             0x0000000000ab642d main + 2403
20 libc.so.6       0x00002aaaab262304 __libc_start_main + 244
21 llc             0x0000000000ab4b79
Stack dump:
0.    Program arguments: ../llc temp.ll -march=x86 -o /dev/null 
1.    Running pass 'Function Pass Manager' on module 'temp.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@autogen_5860_500'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"

define void @autogen_5860_500(i8*, i32*, i64*, i32, i8, i64) {
BB:
  %A4 = alloca <8 x i32>
  %A3 = alloca <8 x i32>
  %A2 = alloca <8 x i64>
  %A1 = alloca <8 x i32>
  %A = alloca <8 x i32>
  %L = load <8 x i64>* %A2
  store <8 x i32> undef, <8 x i32>* %A
  %E = extractelement <8 x i64> %L, i32 0
  %E5 = extractelement <8 x i64> %L, i32 2
  %Shuff = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 undef, i32
7, i32 undef, i32 11, i32 13, i32 undef, i32 1, i32 3>
  %Shuff6 = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 7, i32 9,
i32 undef, i32 13, i32 15, i32 1, i32 3, i32 5>
  %Shuff7 = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 undef, i32
11, i32 13, i32 15, i32 1, i32 undef, i32 5, i32 7>
  %I = insertelement <8 x i64> %L, i64 %E, i32 3
  %B = xor <8 x i64> %Shuff, %L
  %Se = sext i32 %3 to i64
  %S = select i1 true, i64 %E5, i64 %E
  %S8 = fcmp ugt double 0x3EC3280FC1A375B5, 0x3EC3280FC1A375B5
  br label %CF

CF:                                               ; preds = %CF, %BB
  %L9 = load i8* %0
  store <8 x i32> undef, <8 x i32>* %A
  %E10 = extractelement <8 x i64> %L, i32 6
  %E11 = extractelement <8 x i64> %L, i32 0
  %Shuff12 = shufflevector <8 x i64> %Shuff7, <8 x i64> %L, <8 x i32> <i32 11,
i32 13, i32 15, i32 1, i32 3, i32 undef, i32 7, i32 9>
  %Shuff13 = shufflevector <8 x i64> %L, <8 x i64> %Shuff12, <8 x i32> <i32
undef, i32 undef, i32 1, i32 3, i32 5, i32 7, i32 9, i32 undef>
  %Shuff14 = shufflevector <8 x i64> %Shuff, <8 x i64> %L, <8 x i32> <i32 15,
i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 undef>
  %I15 = insertelement <8 x i64> %L, i64 %E, i32 1
  %FC = sitofp i16 0 to double
  %S16 = select i1 true, double 0x3EC3280FC1A375B5, double 0x3EC3280FC1A375B5
  %S17 = icmp uge <8 x i64> %B, %L
  %L18 = load i8* %0
  store i8 -121, i8* %0
  %E19 = extractelement <8 x i64> %L, i32 2
  %E20 = extractelement <8 x i64> %L, i32 4
  %Shuff21 = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 undef,
i32 1, i32 undef, i32 undef, i32 undef, i32 9, i32 11, i32 13>
  %Shuff22 = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 1, i32 3,
i32 5, i32 7, i32 9, i32 11, i32 13, i32 15>
  %Shuff23 = shufflevector <8 x i64> %Shuff13, <8 x i64> %L, <8 x i32> <i32
undef, i32 undef, i32 7, i32 9, i32 11, i32 13, i32 15, i32 1>
  %I24 = insertelement <8 x i64> %L, i64 219251, i32 5
  %B25 = shl i32 -1, %3
  %Tr = trunc i64 %E11 to i32
  %S26 = select i1 true, i64 219251, i64 46007
  %S27 = fcmp oeq double 0x3ECE6F7E564265C3, 0x3ED3CA9085EB6C6E
  br i1 %S27, label %CF, label %CF38

CF38:                                             ; preds = %CF38, %CF
  %L28 = load i8* %0
  store i8 -85, i8* %0
  %E29 = extractelement <8 x i64> %L, i32 0
  %E30 = extractelement <8 x i64> %L, i32 2
  %Shuff31 = shufflevector <8 x i1> %S17, <8 x i1> %S17, <8 x i32> <i32 undef,
i32 7, i32 9, i32 11, i32 13, i32 15, i32 1, i32 3>
  %Shuff32 = shufflevector <8 x i64> %L, <8 x i64> %Shuff23, <8 x i32> <i32 7,
i32 9, i32 11, i32 undef, i32 15, i32 undef, i32 3, i32 5>
  %Shuff33 = shufflevector <8 x i64> %L, <8 x i64> %L, <8 x i32> <i32 9, i32
undef, i32 13, i32 15, i32 1, i32 3, i32 5, i32 7>
  %I34 = insertelement <8 x i64> %Shuff33, i64 %E, i32 3
  %B35 = srem i64 219251, 46007
  %PC = bitcast <8 x i32>* %A1 to i64*
  %S36 = select i1 true, i64 %E5, i64 %E5
  %S37 = icmp eq i8 -121, %L9
  br i1 %S37, label %CF38, label %CF39

CF39:                                             ; preds = %CF38
  store i64 %E29, i64* %PC
  store i64 %E19, i64* %PC
  store i64 46007, i64* %PC
  store i64 %E19, i64* %PC
  store i64 %E, i64* %PC
  ret void
}

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