[all-commits] [llvm/llvm-project] 3c831c: [RISCV] Add support for vp.fptosi where the result...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Apr 5 09:48:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c831c9b28f7387f4a5d2b2e056cedbc8246e322
      https://github.com/llvm/llvm-project/commit/3c831c9b28f7387f4a5d2b2e056cedbc8246e322
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fptosi-vp-mask.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fptoui-vp-mask.ll
    A llvm/test/CodeGen/RISCV/rvv/vfptosi-vp-mask.ll
    A llvm/test/CodeGen/RISCV/rvv/vfptoui-vp-mask.ll

  Log Message:
  -----------
  [RISCV] Add support for vp.fptosi where the result is a mask type.

We can do this conversion by converting the same sized integer type, then compare the result with 0. The conversion is undefined if the converted FP value doesn't fit in an i1.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D122678




More information about the All-commits mailing list