<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 - [SystemZ] - Valid instructions are rejected with "%r0 used in an address""
href="https://bugs.llvm.org/show_bug.cgi?id=45092">45092</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[SystemZ] - Valid instructions are rejected with "%r0 used in an address"
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: SystemZ
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>slavomir.kucera@broadcom.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Inline assembler parser for SystemZ rejects valid instructions when %r0 is used
as an operands.
Examples of this would be:
- basr %r2,%r0
- bsm %r2,%r0
- lae %r2,0(%r14,%r0)
<a href="https://godbolt.org/z/wY8VqC">https://godbolt.org/z/wY8VqC</a>
- All of these examples are valid and have a use-case,
- GCC accepts them,
- in AR-mode the order of index and base register actually matters (0(%r14,%r0)
operates on primary, 0(%r0,%r14) operates on whatever ar14 points to).
- the instructions can be coded e.g. as templates (like targets for EX/EXRL).
My preferred solution is to just remove the checks in the parser
(SystemZAsmParser.cpp).</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>