]> granicus.if.org Git - clang/commit
[X86] Use separate builtins for fma4 scalar intrinsics. Use negations to remove some...
authorCraig Topper <craig.topper@intel.com>
Sat, 25 Nov 2017 19:32:12 +0000 (19:32 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 25 Nov 2017 19:32:12 +0000 (19:32 +0000)
commit24008b27d5f4c12c43f88e6f4037f16ec43a8bc3
treee948cd83a3e78a522341d68ab0f6ded87cb96d4e
parent486042e6fec16778a862e16b75cc526d6d9d5606
[X86] Use separate builtins for fma4 scalar intrinsics. Use negations to remove some of the scalar fma3 builtins.

fma4 instructions zero the upper bits of the xmm register. fma3 instructions leave the bits unmodified. This requires separate builtins for the different semantics.

While we're cleaning up the scalar builtins this also removes the fma3 fmsub/fnmadd/fnmsub builtins by using negates in the header file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318985 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
lib/Headers/fma4intrin.h
lib/Headers/fmaintrin.h
test/CodeGen/fma-builtins.c
test/CodeGen/fma4-builtins.c