[RISCV] Add intrinsics for vf[n]macc/vf[n]msac/vf[n]madd/vf[n]msub instructions
authorShihPo Hung <shihpo.hung@sifive.com>
Tue, 22 Dec 2020 12:50:19 +0000 (04:50 -0800)
committerShihPo Hung <shihpo.hung@sifive.com>
Wed, 23 Dec 2020 02:34:00 +0000 (18:34 -0800)
commitad0a7ad950fec5e422e84f0d3f8942d5e1b116f6
tree1b7a00e75470b118fd2bcc15a51ef8185507e120
parent42687839980308bbed8fe909b9810a0fb48f9813
[RISCV] Add intrinsics for vf[n]macc/vf[n]msac/vf[n]madd/vf[n]msub instructions

This patch defines vfmadd/vfnmacc, vfmsac/vfnmsac, vfmadd/vfnmadd,
and vfmsub/vfnmsub lower to V instructions.

Authored-by: Roger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: ShihPo Hung <shihpo.hung@sifive.com>
Differential Revision: https://reviews.llvm.org/D93691
18 files changed:
llvm/include/llvm/IR/IntrinsicsRISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/vfmacc-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmacc-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmadd-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmadd-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmsac-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmsac-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmsub-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfmsub-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmacc-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmacc-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmadd-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmadd-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmsac-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmsac-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmsub-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vfnmsub-rv64.ll [new file with mode: 0644]