]> granicus.if.org Git - clang/commit
[x86] Add the (v)cmpps/pd/ss/sd builtins to match gcc. Use them in the sse intrinsic...
authorCraig Topper <craig.topper@gmail.com>
Sat, 27 Dec 2014 06:59:57 +0000 (06:59 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 27 Dec 2014 06:59:57 +0000 (06:59 +0000)
commitc453d7f6486861992e0d981a0ba9dfea6de8c367
tree5034a8e7bdb8e26673083a6c4aae8dd908536faf
parentaa5f6f685779fe6f31e2acd6c5ffe979762e6da1
[x86] Add the (v)cmpps/pd/ss/sd builtins to match gcc. Use them in the sse intrinsic files.

This still lower to the same intrinsics as before.

This is preparation for bounds checking the immediate on the avx version of the builtin so we don't pass illegal immediates into the backend. Since SSE uses a smaller size immediate its not possible to bounds check when using a shared builtin. Rather than creating a clang specific builtin for the different immediate, I decided (after consulting with Chandler) that it was better to match gcc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224879 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
lib/CodeGen/CGBuiltin.cpp
lib/Headers/emmintrin.h
lib/Headers/xmmintrin.h
test/CodeGen/sse-builtins.c