<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 --- - PowerPC: SEGV in llvm::PPCGenRegisterInfo::getSubClassWithSubReg"
href="https://llvm.org/bugs/show_bug.cgi?id=26617">26617</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC: SEGV in llvm::PPCGenRegisterInfo::getSubClassWithSubReg
</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>Created <span class=""><a href="attachment.cgi?id=15907" name="attach_15907" title="Test case">attachment 15907</a> <a href="attachment.cgi?id=15907&action=edit" title="Test case">[details]</a></span>
Test case
The attached 32bit test case hits a SEGV:
llc -O2 bugpoint-reduced-simplified.ll
Program received signal SIGSEGV, Segmentation fault.
0x00000000101fe330 in llvm::PPCGenRegisterInfo::getSubClassWithSubReg
(this=0x10d6b1f8, RC=0x0, Idx=<optimised out>) at
lib/Target/PowerPC/PPCGenRegisterInfo.inc:4574
4574 if (!Idx) return RC;
(gdb) backtrace
#0 0x00000000101fe330 in llvm::PPCGenRegisterInfo::getSubClassWithSubReg
(this=0x10d6b1f8, RC=0x0, Idx=<optimised out>) at
lib/Target/PowerPC/PPCGenRegisterInfo.inc:4574
#1 0x000000001094bdd4 in llvm::InstrEmitter::EmitSubregNode
(this=0x3fffffffdab0, Node=0x10d9f4f0, VRBaseMap=..., IsClone=false,
IsCloned=false) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:549
#2 0x0000000010951248 in llvm::InstrEmitter::EmitMachineNode
(this=0x3fffffffdab0, Node=0x10d9f4f0, IsClone=<optimised out>,
IsCloned=<optimised out>, VRBaseMap=...)
at /home/anton/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:729
#3 0x00000000108a0840 in llvm::InstrEmitter::EmitNode (VRBaseMap=...,
IsCloned=<optimised out>, IsClone=<optimised out>, Node=<optimised out>,
this=<optimised out>)
at /home/anton/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h:121
#4 llvm::ScheduleDAGSDNodes::EmitSchedule (this=0x10d981f0, InsertPos=...) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp:846
#5 0x000000001091bb64 in llvm::SelectionDAGISel::CodeGenAndEmitDAG
(this=0x10d470d0) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:869
#6 0x000000001091bea4 in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x10d470d0, Begin=..., End=..., HadTailCall=@0x3fffffffdfcf: false) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:669
#7 0x00000000109234f8 in llvm::SelectionDAGISel::SelectAllBasicBlocks
(this=0x10d470d0, Fn=...) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1361
#8 0x0000000010925188 in llvm::SelectionDAGISel::runOnMachineFunction
(this=0x10d470d0, mf=...) at
/home/anton/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:503
#9 0x0000000010196dd0 in (anonymous
namespace)::PPCDAGToDAGISel::runOnMachineFunction (this=0x10d470d0, MF=...) at
/home/anton/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:87
#10 0x0000000010480078 in llvm::MachineFunctionPass::runOnFunction
(this=0x10d470d0, F=...) at
/home/anton/llvm/lib/CodeGen/MachineFunctionPass.cpp:43
#11 0x00000000106fe9ec in llvm::FPPassManager::runOnFunction (this=0x10d437a0,
F=...) at /home/anton/llvm/lib/IR/LegacyPassManager.cpp:1550
#12 0x00000000106fef2c in llvm::FPPassManager::runOnModule (this=0x10d437a0,
M=...) at /home/anton/llvm/lib/IR/LegacyPassManager.cpp:1571
#13 0x00000000106fe4d4 in (anonymous namespace)::MPPassManager::runOnModule
(M=..., this=0x10d31500) at /home/anton/llvm/lib/IR/LegacyPassManager.cpp:1627
#14 llvm::legacy::PassManagerImpl::run (this=0x10d32210, M=...) at
/home/anton/llvm/lib/IR/LegacyPassManager.cpp:1730
#15 0x00000000106fe75c in llvm::legacy::PassManager::run (this=<optimised out>,
M=...) at /home/anton/llvm/lib/IR/LegacyPassManager.cpp:1761
#16 0x000000001014b798 in compileModule (argv=0x3fffffffeff8, Context=...) at
/home/anton/llvm/tools/llc/llc.cpp:405
#17 0x0000000010129c38 in main (argc=<optimised out>, argv=0x3fffffffeff8) at
/home/anton/llvm/tools/llc/llc.cpp:211</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>