[llvm-bugs] [Bug 34959] New: Incorrect predication in SKX, opt-bisect blames SLP Vectorizer

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 15 16:36:50 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34959

            Bug ID: 34959
           Summary: Incorrect predication in SKX, opt-bisect blames SLP
                    Vectorizer
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: babokin at gmail.com
                CC: llvm-bugs at lists.llvm.org

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.

> cat x.cpp
#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);
}

> clang++ x.cpp -O0 -march=skx -o out; ./out
0.448900
> clang++ x.cpp -O2 -march=skx -o out; ./out
0.000000

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171015/ec2dbc03/attachment.html>


More information about the llvm-bugs mailing list