<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Invalid operand for inline asm constraint 'n'" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24071&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=W4CWMr4M2aFOQq6aXDcKUTsMVPAuodEtMrPNj9NjTvw&s=rhfYqKxyBesgD4al4dRmdr1q-Lvw5tXkJrh0GQkEZa0&e=">24071</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid operand for inline asm constraint 'n'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mgrang@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, sharparrow1@yahoo.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14567" name="attach_14567" title="testcase.ll">attachment 14567</a> <a href="attachment.cgi?id=14567&action=edit" title="testcase.ll">[details]</a></span>
testcase.ll

I have the following reduced testcase file:

<span class="quote">> cat testcase.ll</span >

define i32 @foo(i32 %a, i32 %b) {
entry:
  %0 = call i32 asm "", "=r,r,n,n"(i32 %a, i32 %b, i32 %b)
  ret i32 %0
}

When invoking llc on the above file I get this error:

<span class="quote">> llc testcase.ll</span >
error: invalid operand for inline asm constraint 'n'

<span class="quote">> clang -v</span >
clang version 3.7.0 (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_git_clang.git&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=W4CWMr4M2aFOQq6aXDcKUTsMVPAuodEtMrPNj9NjTvw&s=_lTcknsdwE02YXq3c3RSuJz2I4C19m22lFoF2kqjuSM&e=">http://llvm.org/git/clang.git</a>
93ea4643bdacc8e2fe229b69f06ac9fa96e03313) (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_git_llvm.git&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=W4CWMr4M2aFOQq6aXDcKUTsMVPAuodEtMrPNj9NjTvw&s=CPfAbsDxdUgc9_ELBwO7Q4Xun8waTaamF3Wsg30Z9bE&e=">http://llvm.org/git/llvm.git</a>
080d7a819f4fd04883e6ac2e13617f5c8a14be6d)
Target: arm--linux-gnueabi
Thread model: posix


Note: There is bug on a similar issue:
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED WONTFIX - error in backend: Invalid operand for inline asm constraint 'i'!" href="show_bug.cgi?id=11657">https://llvm.org/bugs/show_bug.cgi?id=11657</a>

However the asm in that bug was malformed. I am not sure whether the asm in my
testcase is malformed. Could someone please comment?</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>