<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 --- - llc handles shufflevector with one-element vectors incorrect"
href="http://llvm.org/bugs/show_bug.cgi?id=17534">17534</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llc handles shufflevector with one-element vectors incorrect
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</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>llc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ili.filippov@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>Reproducer for this issue:
; ModuleID = 'a.o'
target datalayout =
"e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind
define void @f_fu(<8 x i32>* nocapture %RET, <1 x i32> %aFOO) #0 {
%basesmear.i.i92 = shufflevector <1 x i32> %aFOO, <1 x i32> undef, <8 x i32>
<i32 0, i32 undef, i32 0, i32 undef, i32 0, i32 undef, i32 0, i32 undef>
store <8 x i32> %basesmear.i.i92, <8 x i32>* %RET, align 4
ret void
}
attributes #0 = { nounwind }
llc output:
llc: llvm-3.3/include/llvm/CodeGen/SelectionDAGNodes.h:538: const
llvm::SDValue& llvm::SDNode::getOperand(unsigned int) const: Assertion `Num <
NumOperands && "Invalid child # of SDNode!"' failed.
0 llc 0x00000000010ecc62 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 llc 0x00000000010ec8b9
2 libpthread.so.0 0x00007f1763e33000
3 libc.so.6 0x00007f1762e7bba5 gsignal + 53
4 libc.so.6 0x00007f1762e7d358 abort + 328
5 libc.so.6 0x00007f1762e74972
6 libc.so.6 0x00007f1762e74a22
7 llc 0x000000000054955a
8 llc 0x0000000000a2fb65
9 llc 0x0000000000a628df
10 llc 0x0000000000a63d50
11 llc 0x0000000000a6527b
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 827
12 llc 0x0000000000b10511
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 497
13 llc 0x0000000000b1399e
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2318
14 llc 0x0000000000b15623
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1027
15 llc 0x00000000010847df
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
16 llc 0x000000000108482b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
17 llc 0x00000000010842d7
llvm::MPPassManager::runOnModule(llvm::Module&) + 663
18 llc 0x0000000001084497 llvm::PassManagerImpl::run(llvm::Module&)
+ 231
19 llc 0x0000000000578ec7
20 llc 0x0000000000569cb8 main + 360
21 libc.so.6 0x00007f1762e67a05 __libc_start_main + 245
22 llc 0x0000000000577c55
Stack dump:
0. Program arguments: llc c.s
1. Running pass 'Function Pass Manager' on module 'c.s'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f_fu'
Aborted (core dumped)
This issue is a regression between 3.2 and 3.3 versions. Also if we change <1 x
i32> to <2 x i32> or more everything will pass.</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>