<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 - RISC-V instruction selection cannot lower fpext half to float"
href="https://bugs.llvm.org/show_bug.cgi?id=43447">43447</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>RISC-V instruction selection cannot lower fpext half to float
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>andrew@ziglang.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre><a href="https://godbolt.org/z/rQo8FS">https://godbolt.org/z/rQo8FS</a>
define void @entry() #0 {
Entry:
%x = alloca half, align 2
%y = alloca float, align 4
store half 0xH4A2C, half* %x, align 2
%0 = load half, half* %x, align 2
%1 = fpext half %0 to float
store float %1, float* %y, align 4
ret void
}
attributes #0= { nobuiltin nounwind }
fatal error: error in backend: Cannot select: 0x559c835b70e0: f32,ch =
load<(dereferenceable load 2 from %ir.x), anyext from f16> 0x559c835b72e8,
FrameIndex:i64<0>, undef:i64
0x559c835b6e08: i64 = FrameIndex<0>
0x559c835b6ed8: i64 = undef</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>