<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 - Compile error when input operator constraint of inline asm has "o""
   href="https://bugs.llvm.org/show_bug.cgi?id=42839">42839</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compile error when input operator constraint of inline asm has "o"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ueno.masakazu@jp.fujitsu.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22321" name="attach_22321" title="Error log when compiling ruby">attachment 22321</a> <a href="attachment.cgi?id=22321&action=edit" title="Error log when compiling ruby">[details]</a></span>
Error log when compiling ruby

When compiling ruby-2.5.5 on aarch64/thunderX2t99, the compilation process is
aborted.
The problem seems to be due to the input operator constraint of inline asm
having "o".

Here's a short example.
-------------------
//This program aborts because "o" is included in "nor".

void hoge(void)
{
    static const char *str = "HOGE";
    __asm__ __volatile__(".asciz \"%[_SDT_A2]\"" : : [_SDT_A2] "nor" ((str)));
}

-------------------

There is no description of the "o" in the AArch64 section of the following URL,
but how should it be done?
 > <a href="https://llvm.org/docs/LangRef.html#supported-constraint-code-list">https://llvm.org/docs/LangRef.html#supported-constraint-code-list</a>
If "o" is included, is it correct to ignore it?


The environment used for confirmation is as follows.
$ clang --version
clang version 7.0.1 (tags/RELEASE_701/final)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /oss/LLVM/llvm-7.0.1/install/bin</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>