<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 - Incorrect predication in SKX, opt-bisect blames SLP Vectorizer"
   href="https://bugs.llvm.org/show_bug.cgi?id=34959">34959</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incorrect predication in SKX, opt-bisect blames SLP Vectorizer
          </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>babokin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang trunk, rev315775, x86_64.

This may be duplication of #34665, but I failed to reduce the test to integer
types, so it seems to be different.

<span class="quote">> cat x.cpp</span >
#include <stdio.h>

long double a = 2;
double b = 0.0;
float c = 0.670000f;
float f = 0.0;
double d = 0.0;
double e = 0.0;
int main() {
  long double result = (a*0.5f ? (0.890000f + b ? (a ? c : 0) : 0) : 0 * d ?:
0.500000f) *
           (a*0.5f ? (0.890000f + b ? (a ? c : 0) : 0) : e * 0 ?: f);
  printf("%Lf\n", result);
}

<span class="quote">> clang++ x.cpp -O0 -march=skx -o out; ./out</span >
0.448900
<span class="quote">> clang++ x.cpp -O2 -march=skx -o out; ./out</span >
0.000000</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>