<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 - bcr 15,0 syntax is not supported on SystemZ"
   href="https://bugs.llvm.org/show_bug.cgi?id=45582">45582</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bcr 15,0 syntax is not supported on SystemZ
          </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>Linux
          </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: SystemZ
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>iii@linux.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>gas accepts the following:

$ cat test.s 
bcr 15,0
$ as test.s

however, clang doesn't:

$ clang -c test.s
test.s:1:8: error: invalid operand for instruction
bcr 15,0
       ^

it wants 'bcr 15,%r0' instead.

It would be great to accept what gas accepts here, because e.g. musl libc uses
this syntax:
<a href="https://git.musl-libc.org/cgit/musl/tree/arch/s390x/atomic_arch.h?h=v1.2.0#n23">https://git.musl-libc.org/cgit/musl/tree/arch/s390x/atomic_arch.h?h=v1.2.0#n23</a></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>