[X86] Make sure we don't combine (fneg (fma X, Y, Z)) to a target specific node when...
authorCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 00:08:38 +0000 (00:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 00:08:38 +0000 (00:08 +0000)
commitccfa5257a659cf1f54dd3f8518c8c42218369c41
treee710a1096658dea1ca7787f8749a0e78ee82ae3e
parent75c649c96029a540466010525c36b5f20df25f2f
[X86] Make sure we don't combine (fneg (fma X, Y, Z)) to a target specific node when there are no FMA instructions.

This would cause a 'cannot select' error at isel when we should have emitted a lib call and an xor.

Fixes PR36553.

llvm-svn: 326393
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr36553.ll [new file with mode: 0644]