<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 --- - Compiling libx264 (target-cpu i686 +sse): Do not know how to custom type legalize this operation!"
   href="https://llvm.org/bugs/show_bug.cgi?id=30298">30298</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiling libx264 (target-cpu i686 +sse): Do not know how to custom type legalize this operation!
          </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>normal
          </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>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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); }</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>