[LLVMbugs] [Bug 20213] New: clang-cl doesn't support SSSE3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 5 09:48:17 PDT 2014


            Bug ID: 20213
           Summary: clang-cl doesn't support SSSE3
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

tmmintrin.h has a guard over __SSSE3__ which bails out with an #error.  Even if
I remove that, the following program won't build:

$ cat test.cpp
#include <tmmintrin.h>

int main ()
    __m128i a, mask;

    __m128i res = _mm_shuffle_epi8(a, mask);

    return 0;

$ clang-cl test.cpp
fatal error: error in backend: Cannot select: 0x57ea760: v16i8 = X86ISD::PSHUFB
0x57ea640, 0x57ea880 [ORD=17] [ID=19]
  0x57ea640: v16i8 = bitcast 0x57ea250 [ORD=14] [ID=13]
    0x57ea250: v2i64,ch = load 0x57ea010, 0x57ea1c0, 0x57e9f80<LD16[%a]>
[ORD=10] [ID=11]
      0x57ea1c0: i32 = FrameIndex<3> [ID=5]
      0x57e9f80: i32 = undef [ID=3]
  0x57ea880: v16i8 = bitcast 0x57ea7f0 [ORD=16] [ID=18]
    0x57ea7f0: v2i64,ch = load 0x57ea520, 0x57ea2e0, 0x57e9f80<LD16[%1]>
[ORD=16] [ID=17]
      0x57ea2e0: i32 = FrameIndex<0> [ID=6]
      0x57e9f80: i32 = undef [ID=3]
In function: main
Stack dump:
0.      Program arguments: c:\moz\llvm-objdir\RelWithDebInfo\bin\clang-cl.exe
-cc1 -triple i686-pc-windows-msvc -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -target-cpu pentium4 -D_MT --dependent-lib=libcmt
--dependent-lib=oldnames -fdiagnostics-format msvc -resource-dir
c:\moz\llvm-objdir\RelWithDebInfo\bin\..\lib\clang\3.5.0 -internal-isystem
-internal-isystem C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\INCLUDE -internal-isystem C:\Program Files (x86)\Microsoft Visual
Studio 11.0\VC\ATLMFC\INCLUDE -internal-isystem C:\Program Files (x86)\Windows
Kits\8.0\include\shared -internal-isystem C:\Program Files (x86)\Windows
Kits\8.0\include\um -internal-isystem C:\Program Files (x86)\Windows
Kits\8.0\include\winrt -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
c:\moz\src -ferror-limit 19 -fmessage-length 152 -mstackrealign -fms-extensions
-fms-compatibility -fmsc-version=1700 -fdelayed-template-parsing
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o
C:\Users\EHSANA~1\AppData\Local\Temp\test-f645ad.obj -x c++ test.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'test.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang-cl.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.5.0
Target: i686-pc-windows-msvc
Thread model: posix
clang-cl.exe: 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-cl.exe: note: diagnostic msg:

Preprocessed source(s) and associated run script(s) are located at:
clang-cl.exe: note: diagnostic msg:
clang-cl.exe: note: diagnostic msg:
clang-cl.exe: 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/20140705/03e60888/attachment.html>

More information about the llvm-bugs mailing list