<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 - After r329657, error in backend: Cannot lower EFLAGS copy that lives out of a basic block!"
   href="https://bugs.llvm.org/show_bug.cgi?id=37133">37133</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>After r329657, error in backend: Cannot lower EFLAGS copy that lives out of a basic block!
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dimitry@andric.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After <a href="https://reviews.llvm.org/rL329657">https://reviews.llvm.org/rL329657</a> ("[x86] Introduce a pass to begin more
systematically fixing PR36028 and similar issues"), which is part of a fix for
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Incorrect use of pushf/popf enables/disables interrupts on amd64 kernels"
   href="show_bug.cgi?id=36028">bug 36028</a>, building libssh on i386-freebsd results in:

fatal error: error in backend: Cannot lower EFLAGS copy that lives out of a
basic block!
cc: error: clang frontend command failed with exit code 70 (use -v to see
invocation)

Minimized test case:

/* clang -cc1 -triple i386 -S -debug-info-kind=standalone -O1 krl-minimized.c
*/
int a, b;
unsigned long long c;
void e() {
  long long d;
  b = 33;
  d = a;
  if (c < a) {
    b = 32;
    d = c;
  }
  if (d)
    b = 2;
}

Note that the -debug-info-kind=standalone option is important, if that is left
out, the backend error does not occur!</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>