[CodeGen] When Promoting, don't extend the 2nd FCOPYSIGN operand.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 01:09:43 +0000 (01:09 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 01:09:43 +0000 (01:09 +0000)
commit39d772ac647c6a5a596a0de802f5a3aa025130e1
treea70a21cecb29575573f7dfe6b7df6e5687b59a68
parent4e83bb95c8cc97d21ea1bbeb9794ef06ca421c5e
[CodeGen] When Promoting, don't extend the 2nd FCOPYSIGN operand.

We don't care about its type, and there's even a combine that'll fold
away the FP_EXTEND if we let it run. However, until it does, we'll have
something broken like:
  (f32 (fp_extend (f64 v)))

Scalar f16 follow-up to r243924.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244858 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/AArch64/f16-instructions.ll