<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [X86] -march=x86 -mcpu=knl crash"
href="http://llvm.org/bugs/show_bug.cgi?id=20417">20417</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[X86] -march=x86 -mcpu=knl crash
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>[hjl@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@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>
<span class="quote">>::operator[](unsigned int) [with T = llvm::SDValue; <template-parameter-1-2> =</span >
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@gnu-6 avx512bw-1]$</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>