[LLVMbugs] [Bug 2676] New: Selection aborts on extractelement with variable index

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 13 12:30:21 PDT 2008


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

           Summary: Selection aborts on extractelement with variable index
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: paul at rapidmind.com
                CC: llvmbugs at cs.uiuc.edu


compiling a program containing an extractelement with a variable index
(according to the language reference this should work) causes an abort with the
following backtrace:

llc: SelectionDAG.cpp:2305: llvm::SDValue llvm::SelectionDAG::getNode(unsigned
int, llvm::MVT, llvm::SDValue, llvm::SDValue): Assertion `N2C && "Bad
EXTRACT_VECTOR_ELT!"' failed.
[New Thread 0xb7c746c0 (LWP 31633)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7c746c0 (LWP 31633)]
0xb7f1a410 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7f1a410 in __kernel_vsyscall ()
#1  0xb7ca1085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7ca2a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7c9a10e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x0852de53 in llvm::SelectionDAG::getNode (this=0xbf8b9600, Opcode=69, VT=
      {static SimpleTypeBits = 8, static PrecisionBits = 8, static VectorBits =
16, static SimpleTypeMask = 4294967295, static PrecisionMask = 4294967040,
static VectorMask = 4294901760, static ElementMask = 4294967295, V = 7},
N1={Val = 0x89b284c, ResNo = 0}, N2={Val = 0x89b28d4, ResNo = 0}) at
SelectionDAG.cpp:2305
#5  0x08559283 in llvm::SelectionDAGLowering::visitExtractElement
(this=0xbf8b93f0, I=@0x8992ce8) at SelectionDAGISel.cpp:2685
#6  0x0857e6ff in llvm::SelectionDAGLowering::visit (this=0xbf8b93f0,
Opcode=48, I=@0x8992ce8) at
/home/paul/src/llvm/include/llvm/Instruction.def:164
#7  0x0857e7a2 in llvm::SelectionDAGLowering::visit (this=0xbf8b93f0,
I=@0x8992ce8) at SelectionDAGISel.cpp:665
#8  0x0855fa5b in llvm::SelectionDAGISel::BuildSelectionDAG (this=0x899cec0,
DAG=@0xbf8b9600, LLVMBB=0x8991430, PHINodesToUpdate=@0xbf8b9828,
FuncInfo=@0xbf8b9afc) at SelectionDAGISel.cpp:5142
#9  0x08560360 in llvm::SelectionDAGISel::SelectBasicBlock (this=0x899cec0,
LLVMBB=0x8991430, MF=@0x89a5778, FuncInfo=@0xbf8b9afc,
NodeAllocator=@0xbf8b9ac0) at SelectionDAGISel.cpp:5454
#10 0x08561e44 in llvm::SelectionDAGISel::SelectAllBasicBlocks (this=0x899cec0,
Fn=@0x89905f0, MF=@0x89a5778, FuncInfo=@0xbf8b9afc) at
SelectionDAGISel.cpp:5438
#11 0x085628d4 in llvm::SelectionDAGISel::runOnFunction (this=0x899cec0,
Fn=@0x89905f0) at SelectionDAGISel.cpp:4901
#12 0x08382849 in runOnFunction (this=0x899cec0, Fn=@0x89905f0) at
X86ISelDAGToDAG.cpp:123
#13 0x088007b3 in llvm::FPPassManager::runOnFunction (this=0x89956c0,
F=@0x89905f0) at PassManager.cpp:1241
#14 0x08800a2c in llvm::FunctionPassManagerImpl::run (this=0x898f6a8,
F=@0x89905f0) at PassManager.cpp:1196
#15 0x08800b83 in llvm::FunctionPassManager::run (this=0xbf8b9d14,
F=@0x89905f0) at PassManager.cpp:1141
#16 0x08370646 in main (argc=3, argv=0xbf8b9e24) at llc.cpp:302


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