]> granicus.if.org Git - llvm/commit
[X86] negateFMAOpcode - extend to support FMADDSUB/FMSUBADD and output negation....
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 13 Sep 2019 11:22:40 +0000 (11:22 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 13 Sep 2019 11:22:40 +0000 (11:22 +0000)
commit5cceed3a2e6b8780aec81140a13a35e55a921cd2
tree31e87d069952fe1923582dd1ec948bf3f8146410
parenta1571b769799215f7e08ea6883b256956d3e4b1d
[X86] negateFMAOpcode - extend to support FMADDSUB/FMSUBADD and output negation. NFCI.

Some prep work for PR42863, this change allows us to move all the FMA opcode mappings into the negateFMAOpcode helper.

For the FMADDSUB/FMSUBADD cases, we can only negate the accumulator - any other negations will result in an error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371840 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp