<html>
<head>
<base href="https://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 --- - PowerPC64: SEGV in PPCTargetLowering::DAGCombineExtBoolTrunc()"
href="https://llvm.org/bugs/show_bug.cgi?id=26985">26985</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC64: SEGV in PPCTargetLowering::DAGCombineExtBoolTrunc()
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anton@samba.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The attached testcase SEGVs in PPCTargetLowering::DAGCombineExtBoolTrunc()
# llc -O2 bugpoint-reduced-simplified.ll
#0 0x0000000010a5ada0 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/anton/llvm/lib/Support/Unix/Signals.inc:322:0
#1 0x0000000010a5b1e0 PrintStackTraceSignalHandler(void*)
/home/anton/llvm/lib/Support/Unix/Signals.inc:379:0
#2 0x0000000010a58b0c llvm::sys::RunSignalHandlers()
/home/anton/llvm/lib/Support/Signals.cpp:45:0
#3 0x0000000010a58d44 SignalHandler(int)
/home/anton/llvm/lib/Support/Unix/Signals.inc:200:0
#4 0x00003fff9b0f04d8 0x4d8
llvm::PPCTargetLowering::DAGCombineExtBoolTrunc(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
#5 0x00003fff9b0f04d8
/home/anton/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:9904:0
#6 0x00003fff9b0f04d8
llvm::PPCTargetLowering::DAGCombineExtBoolTrunc(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
/home/anton/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:9965:0
#7 0x00000000101ced1c llvm::PPCTargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
/home/anton/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:10189:0
#8 0x00000000101cef20 (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
/home/anton/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1463:0
#9 0x00000000101d0318 Run
/home/anton/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1304:0
#10 0x00000000101d0318 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults&, llvm::CodeGenOpt::Level)
/home/anton/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14846:0
#11 0x0000000010861c1c llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:775:0
#12 0x000000001086346c
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&)
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:669:0
#13 0x00000000109318d8
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1361:0
#14 0x00000000109319e4
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:503:0
#15 0x0000000010939058 (anonymous
namespace)::PPCDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/home/anton/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:87:0
#16 0x000000001093ad38
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/home/anton/llvm/lib/CodeGen/MachineFunctionPass.cpp:43:0
#17 0x000000001019c6d0 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1550:0
#18 0x0000000010483c78 llvm::FPPassManager::runOnModule(llvm::Module&)
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1571:0
#19 0x0000000010705d6c runOnModule
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1627:0
#20 0x0000000010705d6c llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1730:0
#21 0x00000000107062ac llvm::legacy::PassManager::run(llvm::Module&)
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1761:0
#22 0x0000000010705854 compileModule(char**, llvm::LLVMContext&)
/home/anton/llvm/tools/llc/llc.cpp:412:0
#23 0x0000000010705adc main /home/anton/llvm/tools/llc/llc.cpp:218:0
#24 0x000000001014ffb8 generic_start_main
/build/glibc-aJyD1I/glibc-2.21/csu/../csu/libc-start.c:289:0
#25 0x000000001012e118 __libc_start_main
/build/glibc-aJyD1I/glibc-2.21/csu/../sysdeps/unix/sysv/linux/powerpc/libc-start.c:94:0
0 llc 0x0000000010a5ada0 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 128
1 llc 0x0000000010a5b1e0
2 llc 0x0000000010a58b0c llvm::sys::RunSignalHandlers() + 124
3 llc 0x0000000010a58d44
4 0x00003fff9b0f04d8 __kernel_sigtramp_rt64 + 0
5 llc 0x00000000101ced1c
llvm::PPCTargetLowering::DAGCombineExtBoolTrunc(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 3548
6 llc 0x00000000101cef20
llvm::PPCTargetLowering::DAGCombineExtBoolTrunc(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 4064
7 llc 0x00000000101d0318
llvm::PPCTargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 3480
8 llc 0x0000000010861c1c
9 llc 0x000000001086346c llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults&, llvm::CodeGenOpt::Level) + 1708
10 llc 0x00000000109318d8 llvm::SelectionDAGISel::CodeGenAndEmitDAG() +
1352
11 llc 0x00000000109319e4
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 212
12 llc 0x0000000010939058
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1144
13 llc 0x000000001093ad38
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1384
14 llc 0x000000001019c6d0
15 llc 0x0000000010483c78
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 216
16 llc 0x0000000010705d6c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 620
17 llc 0x00000000107062ac llvm::FPPassManager::runOnModule(llvm::Module&)
+ 76
18 llc 0x0000000010705854
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1012
19 llc 0x0000000010705adc llvm::legacy::PassManager::run(llvm::Module&) +
28
20 llc 0x000000001014ffb8
21 llc 0x000000001012e118 main + 360
22 libc.so.6 0x00003fff9aad3500
23 libc.so.6 0x00003fff9aad3734 __libc_start_main + 180
Stack dump:
0. Program arguments: llc -O2 bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
'@fn2'</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>