[PATCH] D122512: [RISCV] Add lowering for vp.fptosi and vp.sitofp.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 15:20:36 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, rogfer01, loralb, jacquesguan, khchen, arcbbb, kito-cheng.
Herald added subscribers: s, VincentWu, luke957, StephenFan, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This as an alternative version of D120641 <https://reviews.llvm.org/D120641>. Starting from the code here
https://repo.hca.bsc.es/gitlab/rferrer/llvm-epi/-/raw/EPI/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
but with some modifications to how the interim types are calculated,
and adding support for f16.

Still need to add fptosi for mask vectors.

Lots of masked isel patterns added so we can pass the mask through
the type changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122512

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fptosi-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-sitofp-vp-mask.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-sitofp-vp.ll
  llvm/test/CodeGen/RISCV/rvv/vfptosi-vp.ll
  llvm/test/CodeGen/RISCV/rvv/vsitofp-vp-mask.ll
  llvm/test/CodeGen/RISCV/rvv/vsitofp-vp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122512.418344.patch
Type: text/x-patch
Size: 84630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220325/9bf551f2/attachment.bin>


More information about the llvm-commits mailing list