[X86] Use __builtin_ia32_vec_ext_v4hi and __builtin_ia32_vec_set_v4hi to implement...
authorCraig Topper <craig.topper@gmail.com>
Sat, 9 Jul 2016 05:30:41 +0000 (05:30 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 9 Jul 2016 05:30:41 +0000 (05:30 +0000)
commit95b61b0544a024661c86215506ce035b1d966ebc
treee6386c240777d54eb6e280d12c5e6002159867c0
parent45a59a08bc712c63505f688da7f015145cc3edbd
[X86] Use __builtin_ia32_vec_ext_v4hi and __builtin_ia32_vec_set_v4hi to implement pextrw/pinsertw MMX intrinsics instead of trying to use native IR.

Without this we end up generating code that doesn't use mmx registers and probably doesn't work well with other mmx intrinsics.

llvm-svn: 274968
clang/include/clang/Basic/BuiltinsX86.def
clang/lib/Headers/xmmintrin.h
clang/test/CodeGen/mmx-builtins.c