<html>
<head>
<base href="https://bugs.llvm.org/">
</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] Support half/f16"
href="https://bugs.llvm.org/show_bug.cgi?id=39865">39865</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[PowerPC] Support half/f16
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>enhancement
</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>v.churavy@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I was exploring adding support for half/f16 in the Julia frontend and while
testing on PPC I discovered that the backend doesn't support instructions
targeting f16.
I am in particular interested in f16 support since the codegen of the Julia
front-end does not differentiate between GPU/CPU codegen and I want to target
NVIDIAs native f16 support. It would be absolutely fine if the PPC backend
bails out early and emits library-calls.
I no longer have my particular test-case at hand, but running the fairly
generic X86 testcase yields:
➜ llvm git:(master) llc -mtriple=ppc64le-unknown-linux-gnu
test/CodeGen/X86/half.ll
LLVM ERROR: Cannot select: 0x561ac6ea0158: f32,ch = load<(load 2 from
%ir.addr), anyext from f16> 0x561ac6e408f8, 0x561ac6e9ffb8, undef:i64
0x561ac6e9ffb8: i64,ch = CopyFromReg 0x561ac6e408f8, Register:i64 %0
0x561ac6ea0290: i64 = Register %0
0x561ac6ea0088: i64 = undef
In function: test_extend32</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>