[X86] Accept hasAVX512() as well as hasFMA() when generating FMA.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 25 Jun 2015 00:44:46 +0000 (00:44 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 25 Jun 2015 00:44:46 +0000 (00:44 +0000)
commiteb78c2fbdf4f1d7ef7f2b5340f41eca245e30d83
tree15a3869901a092d73ad3cb081621bd3601214eb6
parentcd07f777e6a9c3780a50c9e55525ca380f10ffee
[X86] Accept hasAVX512() as well as hasFMA() when generating FMA.

We don't always have FMA, for example when using 'clang -mavx512f'
without an explicit CPU.

Also check for an explicit +avx512f instead of CPUs in a couple
related tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240616 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-fma-intrinsics.ll
test/CodeGen/X86/avx512-fma.ll
test/CodeGen/X86/fma.ll