[PATCH] D70678: [RISCV] Handle fcopysign(f32, f64) and fcopysign(f64, f32)

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 09:47:40 PST 2019


luismarques created this revision.
luismarques added a reviewer: lenary.
Herald added subscribers: llvm-commits, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: LLVM.

Adds tablegen patterns to explicitly handle fcopysign where the magnitude and sign arguments have different types, due to the sign value casts being removed the by DAGCombiner. Support for RV32IF requires a different mechanism. For clarity, it will be added as a separate patch. Adds tests for all relevant scenarios except RV32IF.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70678

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoD.td
  llvm/test/CodeGen/RISCV/copysign-casts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70678.230920.patch
Type: text/x-patch
Size: 3915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191125/aa23503c/attachment.bin>


More information about the llvm-commits mailing list