[PATCH] D93624: [RISCV] Fix rounding mode in lowering of float operations
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 03:17:03 PST 2020
sepavloff created this revision.
sepavloff added reviewers: asb, craig.topper.
Herald added subscribers: frasercrmck, NickHung, evandro, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
sepavloff requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.
LLVM IR nodes like 'fadd', 'fmul' and other are assumed to execute in the
default floating-point environment, which in turn assumes rounding to
nearest even. In RISCV these operations were mapped to dynamic rounding
variants. This change fixes this by mapping to instructions with RNE
argument.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93624
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoD.td
llvm/lib/Target/RISCV/RISCVInstrInfoF.td
llvm/test/CodeGen/RISCV/double-arith.ll
llvm/test/CodeGen/RISCV/float-arith.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93624.313067.patch
Type: text/x-patch
Size: 20372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201221/76478e67/attachment.bin>
More information about the llvm-commits
mailing list