<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: CTR register loop optimization fails with PIC"
href="https://llvm.org/bugs/show_bug.cgi?id=25256">25256</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC: CTR register loop optimization fails with PIC
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>eric.schweitz@pgroup.com
</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=15117" name="attach_15117" title="reduced_fn.ll">attachment 15117</a> <a href="attachment.cgi?id=15117&action=edit" title="reduced_fn.ll">[details]</a></span>
reduced_fn.ll
The reduced LL file is attached. Host machine is a POWER8.
% llc reduced_fn.ll -o ./vm08.s -mcpu=native -O2 -relocation-model=pic
Invalid PPC CTR loop!
UNREACHABLE executed at
/proj/scratch/eschweitz/git/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:676!
#0 0x10de5878 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de5878)
#1 0x10de69a0 (/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de69a0)
#2 0x10de6d98 (/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de6d98)
0 llc 0x0000000010de5878 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 120
1 llc 0x0000000010de69a0
2 llc 0x0000000010de6d98
3 0x0000100000040478 __kernel_sigtramp_rt64 + 0
4 libc.so.6 0x0000100000400a88 gsignal + 72
5 libc.so.6 0x000010000040693c abort + 620
6 llc 0x0000000010dcaae0 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 688
7 llc 0x000000001031f1d4
8 llc 0x00000000106e8e88
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 216
9 llc 0x0000000010c9de64
llvm::FPPassManager::runOnFunction(llvm::Function&) + 804
10 llc 0x0000000010c9e20c llvm::FPPassManager::runOnModule(llvm::Module&)
+ 76
11 llc 0x0000000010c9ea18
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1320
12 llc 0x0000000010c9f1fc llvm::legacy::PassManager::run(llvm::Module&) +
28
13 llc 0x00000000101289f8 main + 9208
14 libc.so.6 0x00001000003e4d00
15 libc.so.6 0x00001000003e4ef8 __libc_start_main + 200
Stack dump:
0. Program arguments: llc reduced_fn.ll -o ./vm08.s -mcpu=native -O2
-relocation-model=pic
1. Running pass 'Function Pass Manager' on module 'reduced_fn.ll'.
2. Running pass 'PowerPC CTR Loops Verify' on function '@z000c'</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>