[RISCV] Define vector narrowing type-convert intrinsic.
authorMonk Chiang <monk.chiang@sifive.com>
Thu, 31 Dec 2020 03:35:37 +0000 (11:35 +0800)
committerMonk Chiang <monk.chiang@sifive.com>
Thu, 31 Dec 2020 03:48:28 +0000 (11:48 +0800)
commit2aed9bc98ab6c33c149b9daefef139626abf70c0
treebb67acf81429bf737e1d6648c531263268afd0be
parentfdd30faae5b63509f99976f7e52e686a8b39880a
[RISCV] Define vector narrowing type-convert intrinsic.

Define intrinsics:
  1. vfncvt.xu.f.w/vfncvt.x.f.w
  2. vfncvt.rtz.xu.f.w/vfncvt.rtz.x.f.w
  3. vfncvt.f.xu.w/vfncvt.f.x.w
  4. vfncvt.f.f.w/vfncvt.rod.f.f.w

We work with @rogfer01 from BSC to come out this patch.

Authored-by: Roger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: Monk Chiang <monk.chiang@sifive.com>
Differential Revision: https://reviews.llvm.org/D93932
18 files changed:
llvm/include/llvm/IR/IntrinsicsRISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-f-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-x-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-x-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-xu-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-f-xu-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rod-f-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rod-f-f-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rtz-x-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rtz-x-f-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rtz-xu-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-rtz-xu-f-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-x-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-x-f-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-xu-f-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfncvt-xu-f-rv64.ll [new file with mode: 0644]