Comment # 25
on bug 10798
from Guy Harris
Hmm.
http://llvm.org/klaus/clang/commit/427435fb15593f19f86aee0c25e2b96e03aadf69/
"Re-enable pcmpistri/pcmpestri builtins in clang now that llvm supports them
properly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161319
91177308-0d34-0410-b5e6-96231b3b80d8
Craig Topper 2 years ago"
I found this because I tried compiling on my Lion virtual machine with
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
--versionApple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM
3.1svn)
and with
clang --versionApple clang version 4.1 (tags/Apple/clang-421.11.66) (based on
LLVM 3.1svn)
and I got errors such as
ws_mempbrk_sse42.c:179:19: error: use of unknown builtin
'__builtin_ia32_pcmpistric128'
int cflag = _mm_cmpistrc (mask, value, 0x2);
because the smmintr.h headers for those versions of clang define some of the
functions we're using in terms of those builtins but the actual compiler
doesn't support them. This means we may need to do some additional checks to
make sure that we can actually *use* those builtins, as they did a half-assed
job of disabling them.
Perhaps the lack of proper support in llvm refers to the compiler bugs we're
seeing, and perhaps the compiler version on the buildbot doesn't have them
disabled. I'll look some more to see what I can find.
You are receiving this mail because:
- You are watching all bug changes.