<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 --- - [mc] F64 insns -- floating inline constants incorrectly encoded as literals"
href="https://llvm.org/bugs/show_bug.cgi?id=28165">28165</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[mc] F64 insns -- floating inline constants incorrectly encoded as literals
</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>Windows NT
</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: AMDGPU
</td>
</tr>
<tr>
<th>Assignee</th>
<td>artem.tamazov@amd.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>artem.tamazov@amd.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, nikolay.haustov@amd.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Example of failing instruction:
<span class="quote">> v_ceil_f64 v[27:28], 0.5</span >
In the case above, 0.5 is encoded as 32-bit literal (0x3f000000), which is
incorrect and will be interpreted as 3.0517578125E-5 instead of 0.5. Correct
encoding is inline constant 240 (optimal) or 32-bit literal 0x3FE00000 at
least.
I am almost sure that issue appears for other sub-targets as well, e.g. gfx8.
Number of failing lit1 tests (-search=simple) = 29349.
Tested with r272673 (git # da10a460d7c98278561225fda90855b303675f35).</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>