[WebAssembly] Implement mixed-type ISD::FCOPYSIGN.
authorDan Gohman <dan433584@gmail.com>
Thu, 10 Dec 2015 04:55:31 +0000 (04:55 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 10 Dec 2015 04:55:31 +0000 (04:55 +0000)
commit54fd4d436030f4fa15e8b9cd6643a9255890144c
tree8d0275c348ea2e7915af5651a243b201a725e877
parentcc39a6efb8e162e314cc259a37b1912337079790
[WebAssembly] Implement mixed-type ISD::FCOPYSIGN.

ISD::FCOPYSIGN permits its operands to have differing types, and DAGCombiner
uses this. Add some def : Pat rules to expand this out into an explicit
conversion and a normal copysign operation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255220 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrFloat.td
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
test/CodeGen/WebAssembly/copysign-casts.ll [new file with mode: 0644]