<html>
    <head>
      <base href="http://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 --- - Using __builtin_ia32_pshufb128 causes "fatal error: error in backend: Cannot select: 0x3e5d580: v16i8 = X86ISD::PSHUFB""
   href="http://llvm.org/bugs/show_bug.cgi?id=22301">22301</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using __builtin_ia32_pshufb128 causes "fatal error: error in backend: Cannot select: 0x3e5d580: v16i8 = X86ISD::PSHUFB"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rtrieu@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using __builtin_ia32_pshufb128 causes fatal error in backend:

$ cat l.cpp
typedef long long LL __attribute__((__vector_size__(16)));

void foo() {
  LL a, b, c;
  c = __builtin_ia32_pshufb128(a, b);
}
$ clang -cc1 -emit-obj l.cpp
fatal error: error in backend: Cannot select: 0x479bba0: v16i8 = X86ISD::PSHUFB
0x479bed0, 0x479bdc0 [ORD=9] [ID=10]
  0x479bed0: v16i8 = bitcast 0x479e420 [ORD=6] [ID=8]
    0x479e420: v2i64,ch = load 0x4782b10, 0x479ba90, 0x479bcb0<LD16[%a]>
[ORD=6] [ID=6]
      0x479ba90: i64 = FrameIndex<0> [ID=1]
      0x479bcb0: i64 = undef [ID=2]
  0x479bdc0: v16i8 = bitcast 0x479c420 [ORD=8] [ID=9]
    0x479c420: v2i64,ch = load 0x4782b10, 0x479bfe0, 0x479bcb0<LD16[%b]>
[ORD=8] [ID=7]
      0x479bfe0: i64 = FrameIndex<1> [ID=3]
      0x479bcb0: i64 = undef [ID=2]
In function: _Z3foov</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>