<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 --- - MI Serialization - inconsistent implicit operand ordering assumptions"
   href="https://llvm.org/bugs/show_bug.cgi?id=24724">24724</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MI Serialization - inconsistent implicit operand ordering assumptions
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hfinkel@anl.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

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

Running the attached IR through llc using:

$ llc -o test.s test.ll -stop-after=machine-combiner > test.orig.mir

produces the attached IR. However, trying to ingest that MIR using:

$ llc -o test.s test.orig.mir -start-after=machine-combiner
-stop-after=machine-cse

yields this error:

error: test.orig.mir:64:39: expected an implicit register operand 'implicit
%rm'
    BLR8 implicit %lr8, implicit %rm, implicit %x3
                                      ^
Changing the line as serialized:

  BLR8 implicit %lr8, implicit %rm, implicit %x3

to this:

  BLR8 implicit %x3, implicit %lr8, implicit %rm

allows the ingest to succeed. If MIR parsing requires a specific order of
implicit operands, it should always output them that way. Better, it should not
have this ordering requirement.</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>