[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)
commitf170ba08af4690de355822f35714ed72da4e4814
tree45487f81fb70cc94eed5dc32d4aa364edd693955
parent9341c1d4b3772252bfc1f460da29c291b658e1f8
[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.

llvm-svn: 255220
llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td
llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
llvm/test/CodeGen/WebAssembly/copysign-casts.ll [new file with mode: 0644]