<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 --- - FixupSetCC miscompile"
   href="https://llvm.org/bugs/show_bug.cgi?id=28557">28557</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FixupSetCC miscompile
          </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>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>jvanadrighem@gmail.com
          </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=16746" name="attach_16746" title="Minimal Repro">attachment 16746</a> <a href="attachment.cgi?id=16746&action=edit" title="Minimal Repro">[details]</a></span>
Minimal Repro

For the reproducer here it looks like the xorl is being placed above the place
we set register value:
        xorl    %edx, %edx
        movq    (%rax), %rax
        movq    %rdi, %rdx
        orq     96(%rbp), %rdx
        movq    %rax, -48(%rbp)
        setne   %sil
        xorl    %ebx, %ebx
        movslq  (%r8), %rcx
        movb    %sil, -113(%rbp)
        movb    %sil, %dl
Built with O2, but seems to happen with O3 as well. I tried to reduce the case
as much as possible but this is as minimal as I could get with abtest.py +
creduce + manual edits.</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>