[LLVMbugs] [Bug 21513] New: llc Assertion `ResNo < NumValues && "Illegal result number!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 7 00:11:42 PST 2014


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

            Bug ID: 21513
           Summary: llc Assertion `ResNo < NumValues && "Illegal result
                    number!"' failed
           Product: tools
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: heechun_lim at tmax.co.kr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

llvm 3.4, 64-bit linux.

----------------------------------------------------
llc: /home/compiler/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:610:
llvm::EVT llvm::SDNode::getValueType(unsigned int) const: Assertion `ResNo <
NumValues && "Illegal result number!"' failed.
0  libLLVMSupport.so      0x00007f6a267b07d8
llvm::sys::PrintStackTrace(_IO_FILE*) + 38
1  libLLVMSupport.so      0x00007f6a267b0a55
2  libLLVMSupport.so      0x00007f6a267b048b
3  libpthread.so.0        0x000000351d20f500
4  libc.so.6              0x000000351ca328e5 gsignal + 53
5  libc.so.6              0x000000351ca340c5 abort + 373
6  libc.so.6              0x000000351ca2ba0e
7  libc.so.6              0x000000351ca2bad0 __assert_perror_fail + 0
8  libLLVMSelectionDAG.so 0x00007f6a2a82f226
9  libLLVMSelectionDAG.so 0x00007f6a2a82f5ae
10 libLLVMSelectionDAG.so 0x00007f6a2a938a82
llvm::SelectionDAG::getStore(llvm::SDValue, llvm::SDLoc, llvm::SDValue,
llvm::SDValue, llvm::MachinePointerInfo, bool, bool, unsigned int, llvm::MDNode
const*) + 420
11 libLLVMSelectionDAG.so 0x00007f6a2a96e8d8
llvm::SelectionDAGBuilder::visitStore(llvm::StoreInst const&) + 1650
12 libLLVMSelectionDAG.so 0x00007f6a2a959cbd
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 807
13 libLLVMSelectionDAG.so 0x00007f6a2a95990c
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 140
14 libLLVMSelectionDAG.so 0x00007f6a2a9b2638
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 68
15 libLLVMSelectionDAG.so 0x00007f6a2a9b543e
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 3124
16 libLLVMSelectionDAG.so 0x00007f6a2a9b1921
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1191
17 libLLVMCodeGen.so      0x00007f6a297566b5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
18 libLLVMCore.so         0x00007f6a27286d61
llvm::FPPassManager::runOnFunction(llvm::Function&) + 393
19 libLLVMCore.so         0x00007f6a27286f61
llvm::FPPassManager::runOnModule(llvm::Module&) + 89
20 libLLVMCore.so         0x00007f6a272872d9
21 libLLVMCore.so         0x00007f6a272878e8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 254
22 libLLVMCore.so         0x00007f6a27287aff
llvm::legacy::PassManager::run(llvm::Module&) + 39
23 llc                    0x000000000040bfb9
24 llc                    0x000000000040b09b
25 libc.so.6              0x000000351ca1ecdd __libc_start_main + 253
26 llc                    0x000000000040a9e9
Stack dump:
0.      Program arguments: llc test23.ll
1.      Running pass 'Function Pass Manager' on module 'test23.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Aborted (core dumped)

----------------------------------------------------

test23.ll
----------------------------------------------------
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"#TEM4_Desc" = type { i16, i16, i16, i16, [100 x %T_ENTRY_Desc] }
%T_ENTRY_Desc = type { %KEY_Desc.1, [5 x i8], [5 x [5 x i8]], [10 x
%TKY_SGRP_Desc.2], [100 x %Y_ENTRY_Desc] }
%KEY_Desc.1 = type { [2 x i8], [4 x i8] }
%TKY_SGRP_Desc.2 = type { [2 x i8], [1 x i8], [5 x [5 x i8]], [10 x i8] }
%Y_ENTRY_Desc = type { %PCODE_KEY_Desc }
%PCODE_KEY_Desc = type { [2 x i8], [2 x i8], [19 x i8] }

define i32 @main() {
entry:
  %retval = alloca i32, align 4
  %"#TEM4" = alloca %"#TEM4_Desc", align 2
  store %"#TEM4_Desc" { i16 25600, i16 25600, i16 0, i16 0, [100 x
%T_ENTRY_Desc] zeroinitializer }, %"#TEM4_Desc"* %"#TEM4", align 2
  ret i32 0
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141107/df33a4fc/attachment.html>


More information about the llvm-bugs mailing list