[LLVMbugs] [Bug 22301] New: Using __builtin_ia32_pshufb128 causes "fatal error: error in backend: Cannot select: 0x3e5d580: v16i8 = X86ISD::PSHUFB"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 22 15:22:11 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22301

            Bug ID: 22301
           Summary: Using __builtin_ia32_pshufb128 causes "fatal error:
                    error in backend: Cannot select: 0x3e5d580: v16i8 =
                    X86ISD::PSHUFB"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20150122/625ed9d4/attachment.html>


More information about the llvm-bugs mailing list