<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-ubuntu] code generation failure for some OpenCL built-ins" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23936&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=qeypRC5S5fdOqFncUG3hmC5Y_EqcrpAUI6dj9z0l-ug&s=NzevY3hQH7uKdhJlGrg6VASDF5aGoRx7ksWQzk_BkcE&e=">23936</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[powerpc-ubuntu] code generation failure for some OpenCL built-ins
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>kanagak86@yahoo.ca
</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>Created <span class=""><a href="attachment.cgi?id=14513" name="attach_14513" title="coge generator bug from PPC">attachment 14513</a> <a href="attachment.cgi?id=14513&action=edit" title="coge generator bug from PPC">[details]</a></span>
coge generator bug from PPC
The attached file causes a crash on PPC64 (Power 8) - Ubuntu 3.16.0-23-generic.
The workload is from OpenCL 1.1 built-ins. There were couple of built-ins build
failure on vector data type; int, long, float with vec size; 8 or 16. Some of
the builtins examples: mul_hi_long, asin_h (vec16) and etc.
The last revision that it worked on was 3.6 r222776.
The problem seem to be there for all 3.6.1.
I have attached simplified version of the code generator bug created from bug
point.
Here's the snap shot of the Error:
Impossible reg-to-reg copy
UNREACHABLE executed at PPCInstrInfo.cpp:768!
#0 0x10a55b5c llvm::sys::PrintStackTrace(_IO_FILE*)
(/home/kajank/compiler/llvm_361_r240134/Release+Asserts/bin/llc+0x10a55b5c)
#1 0x10a56998 PrintStackTraceSignalHandler(void*)
(/home/kajank/compiler/llvm_361_r240134/Release+Asserts/bin/llc+0x10a56998)
#2 0x10a57368 SignalHandler(int)
(/home/kajank/compiler/llvm_361_r240134/Release+Asserts/bin/llc+0x10a57368)
0 llc 0x0000000010a55b5c llvm::sys::PrintStackTrace(_IO_FILE*) + 120
1 llc 0x0000000010a56998
2 llc 0x0000000010a57368
3 0x00003fff94ee0478 __kernel_sigtramp_rt64 + 0
4 libc.so.6 0x00003fff94a006b8 gsignal + 72
5 libc.so.6 0x00003fff94a0295c abort + 636
6 llc 0x0000000010a3b3d0 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 684
7 llc 0x00000000101a8e40
llvm::PPCInstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, llvm::DebugLoc, unsigned int,
unsigned int, bool) const + 2280
8 llc 0x00000000104270cc
9 llc 0x00000000104a702c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 216
10 llc 0x000000001095595c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 424
11 llc 0x0000000010955cb8 llvm::FPPassManager::runOnModule(llvm::Module&)
+ 72
12 llc 0x0000000010956360
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1088
13 llc 0x00000000109569dc llvm::legacy::PassManager::run(llvm::Module&) +
28
14 llc 0x00000000100f8da0 main + 7744
15 libc.so.6 0x00003fff949e4e80
16 libc.so.6 0x00003fff949e5074 __libc_start_main + 196
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.bc
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2. Running pass 'Post-RA pseudo instruction expansion pass' on function
'@mul_hi_long8'
Aborted</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>