[LLVMbugs] [Bug 20417] New: [X86] -march=x86 -mcpu=knl crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 23 12:50:25 PDT 2014


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

            Bug ID: 20417
           Summary: [X86] -march=x86 -mcpu=knl crash
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

[hjl at gnu-6 avx512bw-1]$ cat foo.ll 
define i32 @mask32(i32 %x) {
  %m0 = bitcast i32 %x to <32 x i1>
  %m1 = xor <32 x i1> %m0, <i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1
-1,
                            i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1
-1,
                            i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1
-1,
                            i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1
-1>
  %ret = bitcast <32 x i1> %m1 to i32
  ret i32 %ret
}
[hjl at gnu-6 avx512bw-1]$ ./llc-new -march=x86 -mcpu=knl < foo.ll
    .text
    .file    "<stdin>"
llc-new: /export/ssd/git/llvm/include/llvm/ADT/SmallVector.h:141: T&
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::operator[](unsigned int) [with T = llvm::SDValue; <template-parameter-1-2> =
void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference
= llvm::SDValue&]: Assertion `begin() + idx < end()' failed.
0  llc-new         0x0000000001bf7609 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  llc-new         0x0000000001bf7886
2  llc-new         0x0000000001bf7234
3  libpthread.so.0 0x0000003047c0f770
4  libc.so.6       0x0000003047435b89 gsignal + 57
5  libc.so.6       0x0000003047437298 abort + 328
6  libc.so.6       0x000000304742eae6
7  libc.so.6       0x000000304742eb92
8  llc-new         0x0000000000af2c63
9  llc-new         0x0000000001409d46
10 llc-new         0x0000000001408343
11 llc-new         0x0000000001407e59
12 llc-new         0x000000000140da7d llvm::SelectionDAG::LegalizeVectors() +
59
13 llc-new         0x00000000013a8292
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1892
14 llc-new         0x00000000013a7805
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 235
15 llc-new         0x00000000013aa52c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2992
16 llc-new         0x00000000013a6a8f
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1065
17 llc-new         0x00000000011916f8
18 llc-new         0x00000000015a4f3d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
19 llc-new         0x0000000001af0206
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
20 llc-new         0x0000000001af0376
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
21 llc-new         0x0000000001af06ca
22 llc-new         0x0000000001af0d74
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 244
23 llc-new         0x0000000001af0f93
llvm::legacy::PassManager::run(llvm::Module&) + 39
24 llc-new         0x0000000000a62d2c
25 llc-new         0x0000000000a61fe7 main + 237
26 libc.so.6       0x0000003047421ca5 __libc_start_main + 245
27 llc-new         0x0000000000a5f979
Stack dump:
0.    Program arguments: .//llc-new -march=x86 -mcpu=knl 
1.    Running pass 'Function Pass Manager' on module '<stdin>'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function '@mask32'
Aborted
[hjl at gnu-6 avx512bw-1]$

-- 
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/20140723/aceaac51/attachment.html>


More information about the llvm-bugs mailing list