<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 - [AMDGPU][MC][GFX8][GFX9] Use of bound_ctrl is incompatible with SP3"
href="https://bugs.llvm.org/show_bug.cgi?id=35397">35397</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[AMDGPU][MC][GFX8][GFX9] Use of bound_ctrl is incompatible with SP3
</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>All
</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>Backend: AMDGPU
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dpreobrazhensky@luxoft.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>SP3 handles bound_ctrl differently in gfx8 and gfx9.
This causes incompatibility and inconsistency issues.
---------------------------------------------------------------------
Modifier SP3 meaning decoded by SP3 as
gfx8 gfx9 gfx8 gfx9
---------------------------------------------------------------------
bound_ctrl=0 set bit clr bit bound_ctrl=0 <omitted>
bound_ctrl=1 set bit set bit bound_ctrl=0 bound_ctrl=1
<omitted> clr bit clr bit <omitted> <omitted>
---------------------------------------------------------------------
Our assembler is incompatible with SP3 implementation:
-------------------------------------------------------------
Modifier LLVM Asm meaning decoded by LLVM Asm as
-------------------------------------------------------------
bound_ctrl=0 set bit bound_ctrl=0
bound_ctrl=1 <not supported> N/A
<omitted> clr bit <omitted>
-------------------------------------------------------------
I believe we should improve current implementation:
- make it more compatible with SP3;
- make it more consistent.
I see the following options:
a) Do not change anything;
b) Strictly follow SP3 implementation;
c) Mimic SP3 gfx8 implementation for both gfx8 and gfx9;
d) Mimic SP3 gfx9 implementation for both gfx8 and gfx9.
Artem and Sam suggested option c) while I tend to prefer option d).
Matt, what is your opinion?</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>