<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 - Inline Assembly requires more registers (x86)"
   href="https://bugs.llvm.org/show_bug.cgi?id=40956">40956</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Inline Assembly requires more registers (x86)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.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: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cmucchietto@wallix.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21561" name="attach_21561" title="Failure in inline compilation">attachment 21561</a> <a href="attachment.cgi?id=21561&action=edit" title="Failure in inline compilation">[details]</a></span>
Failure in inline compilation

I have an error while compilingC with inline assembly on x86 32bits with a code
that use 5 registers, I have the following error:

error: inline assembly requires more registers than available at line XXXXX

I have reduced the problem to this specific code (see attached IR file). With
this code, the error is always triggered. By moving the line 
   %9 = alloca i32, align 4   
before the branch instruction, the code compile without errors. By moving the
line
   %8 = alloca i32, align 4
the error is displayed 2 times.</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>