<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] Inconsistent behavior of "no*" modifiers"
href="https://bugs.llvm.org/show_bug.cgi?id=48843">48843</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[AMDGPU][MC] Inconsistent behavior of "no*" modifiers
</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>These modifiers are supported for the sake of compatibility with sp3. However
use of "no*" modifiers in llvm results in invalid code or counterintuitive
behavior.
Examples:
1. GFX8 buffer_store_lds_dword requires "lds" modifier:
buffer_store_lds_dword s[4:7], s0 offset:4095 lds // ok
buffer_store_lds_dword s[4:7], s0 offset:4095 // error
However "nolds" is also accepted and results in the same code as "lds" variant.
buffer_store_lds_dword s[4:7], s0 offset:4095 nolds // ok?
There is a similar issue with buffer_load_* opcodes which support "lds" as an
optional modifier. These instruction accept "nolds" but handle it as if it were
"lds".
2. exp "done" modifier is optional:
exp mrt0 v0, v0, v0, v0 done // ok
exp mrt0 v0, v0, v0, v0 // ok
However "nodone" is not supported.
3. ds_gws_* opcodes accept both "gds" and "nogds" but produce the same code.
Actually these opcodes have no lds variants so "nogds" should be illegal.
4. Most modifiers which affect operand size ("offen", "idxen", "glc", etc) can
be omitted, but "no*" variants trigger an error.
buffer_load_format_x v5, off, s[8:11], s3 // ok
buffer_load_format_x v5, off, s[8:11], s3 noidxen // error</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>