[PATCH] D75729: [RISCV] Select +0.0 immediate using fcvt.{d, s}.{x, w} fN, x0
Roger Ferrer Ibanez via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 02:46:22 PST 2020
rogfer01 created this revision.
rogfer01 added reviewers: lenary, luismarques, asb.
Herald added subscribers: llvm-commits, evandro, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, MaskRay, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
rogfer01 added a parent revision: D75728: [NFC][RISCV] Test for 0.0 fp immediate.
The RISC-V ISA Spec, in the chapter about the F extension, says
> A floating-point register can be initialized to floating-point positive zero using `FCVT.S.W rd, x0`, which will never set any exception flags.
The spec doesn't have a similar wording for the D extension but I presume a similar behaviour is to be expected for `FCVT.D.L`. Similarly for `FCVT.S.L` and `FCVT.D.W`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75729
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
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
llvm/test/CodeGen/RISCV/float-br-fcmp.ll
llvm/test/CodeGen/RISCV/fp-imm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75729.248673.patch
Type: text/x-patch
Size: 14906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200306/add7cfe4/attachment.bin>
More information about the llvm-commits
mailing list