[llvm-bugs] [Bug 30298] New: Compiling libx264 (target-cpu i686 +sse): Do not know how to custom type legalize this operation!

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 6 10:51:11 PDT 2016


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

            Bug ID: 30298
           Summary: Compiling libx264 (target-cpu i686 +sse): Do not know
                    how to custom type legalize this operation!
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Building libx264 from the FreeBSD ports collection with clang 3.9.0 release, on
a 32-bit host, enabling SSE, results in:

clang -Wshadow -O3 -ffast-math -m32 -O2 -pipe  -isystem /usr/local/include
-fstack-protector -fno-strict-aliasing -Wall -I. -I. -isystem
/usr/local/include -O2 -pipe  -isystem /usr/local/include -fstack-protector
-fno-strict-aliasing -march=i686 -mfpmath=sse -msse -std=gnu99
-fomit-frame-pointer -fno-tree-vectorize -isystem /usr/local/include  -c -o
common/pixel.o common/pixel.c
Do not know how to custom type legalize this operation!
UNREACHABLE executed at
/share/dim/src/freebsd/base/projects/clang390-import/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp:21834!

This also occurs with trunk r280722, but not with 3.8.0 release, so it a
regression.

Minimized test case:

// clang -cc1 -triple i386 -S -target-cpu i686 -target-feature +sse -O2 -w
-vectorize-slp testcase.c
char *a, *b;
e;
static fn1(long long *p1, long long *p2) {
  for (;;) {
    int c = a[0] - b[0], d = a[1] - b[1];
    *p1 += c * c;
    *p2 += d * d;
  }
}
fn2() { fn1(fn2, &e); }

-- 
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/20160906/902f20a8/attachment.html>


More information about the llvm-bugs mailing list