<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/79729>79729</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [AArch64] Error when assembling call to function named `ror`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          zyedidia
      </td>
    </tr>
</table>

<pre>
    The following AArch64 assembly file fails to compile with Clang even though it is valid:

```
ror:
 ret

foo:
    bl ror
    ret
```

```
$ clang -c test.s
test.s:5:11: error: expected #imm after shift specifier
    bl ror
          ^
$ gcc -c test.s
$ # no error
```

`ror` or any other aarch64 shift operation should be a valid function name. Tested with the latest version of LLVM.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kkGPmzwQhn-NuYwWOQaT5cAh37eb0_a26n0wY-zK4Mg2SdNfXxmySbdqixDgmRf7nZkHY7TjTNQx-R-TLwUuyfjQ_bjSYAeLRe-Ha_duCLR3zl_sPMLhEJRpasAYaerdFbR1BBqti5A8KD-dcuBik4H_Hc4j0JlmSMYvowGbwEY4o7MDqw6MvzD-8Wz47V6XwYe7AAKlX6Xa-0cOAHoHWX5fP-Sf9_xzUNSgVp9PChLFVMYtcfuuDpJVh92OVQegsNkC-n4ilWgAJio7TYA6UYBorE4QT6SsthT-bnC7mHx9WBiV-t1ADjNRwexvB_-zpixoOPgAOF_BJ0MBELdZbcb8iQIm62eIxi9ugJ4At1mAXma1pmacqIR3irm6dYjJEDjMxuBMIWaR1_D29vVLWQxdNbRViwV1uz1valFVz7wwHWpRC0l7KaXGWrfUaJSybpu-7XdVIwvbCS5qvhPPvBFtzUvecmxQ7Bv-LEVNnNWcJrSudO48lT6MhY1xoW7f7kVbOOzJxZVaIWa6wJpkQmSIQ5f_eeqXMbKaOxtTfOySbHIr7jeOmXyB19xduBiaP6jOoCt0LhP9qTUD3FtdLMF1JqVTZoSJIxPH0Saz9KXyExPHfOTt9XQK_hupxMRxNRqZOK6F_AwAAP__Q7wOAw">