http://llvm.org/bugs/show_bug.cgi?id=17132
Bug ID: 17132
Summary: LLVM Toolset xmmintrin.h defines _m_pshufw as a macro,
but the VS STL tries to use it as an identifier
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The relevant compiler error is as follows:
1> G:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\intrin.h:527:20: error: expected unqualified-id
1> __MACHINEX86(__m64 _m_pshufw(__m64, int))
1> ^
1> G:\Program Files (x86)\LLVM
3.4.svn\msbuild-bin\..\lib\clang\3.4\include\xmmintrin.h:986:19: note: expanded
from macro '_m_pshufw'
1> #define _m_pshufw _mm_shuffle_pi16
1> ^
1> G:\Program Files (x86)\LLVM
3.4.svn\msbuild-bin\..\lib\clang\3.4\include\xmmintrin.h:749:32: note: expanded
from macro '_mm_shuffle_pi16'
1> #define _mm_shuffle_pi16(a, n) __extension__ ({ \
1> ^
1> G:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\intrin.h:68:29: note: expanded from macro '__MACHINE'
1> #define __MACHINE(X) X;
The core issue here is that at intrin.h:527, the VS headers attempt to declare
_m_pshufw as a function, whereas xmmintrin.h defines it as a macro to something
else, breaking the declaration.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs