[LLVMbugs] [Bug 24087] New: X86 intrinsic _mm_clmulepi64_si128 crashes with selection error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 10 12:30:48 PDT 2015


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

            Bug ID: 24087
           Summary: X86 intrinsic _mm_clmulepi64_si128 crashes with
                    selection error
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang 3.6 reports an "undeclared identifier" for this intrinsic,
if PCLMUL isn't enabled; current TOT crashes with "Cannot select."

~/projects/scratch$ cat pclmul-crash.cpp 
#include <x86intrin.h>

__m128i foo(__m128i a, __m128i b) {
  return _mm_clmulepi64_si128(a, b, 0x10);
}
~/projects/scratch$ $LL36/clang -c pclmul-crash.cpp -mpclmul
~/projects/scratch$ $LL36/clang -c pclmul-crash.cpp -mno-pclmul
pclmul-crash.cpp:4:10: error: use of undeclared identifier
      '_mm_clmulepi64_si128'
  return _mm_clmulepi64_si128(a, b, 0x10);
         ^
1 error generated.
~/projects/scratch$ $LL37/clang -c pclmul-crash.cpp -mpclmul
~/projects/scratch$ $LL37/clang -c pclmul-crash.cpp -mno-pclmul
fatal error: error in backend: Cannot select: intrinsic %llvm.x86.pclmulqdq
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.7.0 (trunk 241887)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/pclmul-crash-cea03f.cpp
clang: note: diagnostic msg: /tmp/pclmul-crash-cea03f.sh
clang: note: diagnostic msg: 

********************

-- 
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/20150710/6a7624ea/attachment.html>


More information about the llvm-bugs mailing list