<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 - Very undeterministic handling of file: different output .s file every time"
   href="https://bugs.llvm.org/show_bug.cgi?id=34697">34697</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Very undeterministic handling of file: different output .s file every time
          </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>enhancement
          </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>paulsson@linux.vnet.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19184" name="attach_19184" title="original test case">attachment 19184</a> <a href="attachment.cgi?id=19184&action=edit" title="original test case">[details]</a></span>
original test case

I noticed that one particular file in SPEC-2006 keeps changing in the .s output
every time as I recompile it (it was the only file to do so).

I tried to track this down with bugpoint and a bisect, but with no luck. The
reduced test case changes output every now and then, but the original input
changes every time. It looks like it could be related to regalloc as
spill/reload instructions show up in the diffs.

bin/clang -cc1 -triple s390x-ibm-linux -S -target-cpu z13 -O3 -vectorize-loops
-vectorize-slp -o out0 -x ir ./Utilities_newsort.bc
bin/clang -cc1 -triple s390x-ibm-linux -S -target-cpu z13 -O3 -vectorize-loops
-vectorize-slp -o out1 -x ir ./Utilities_newsort.bc
diff out0 out1 | less</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>