[RISCV] Add intrinsics for vmacc/vnmsac/vmadd/vnmsub instructions
authorShihPo Hung <shihpo.hung@sifive.com>
Mon, 21 Dec 2020 06:41:47 +0000 (22:41 -0800)
committerShihPo Hung <shihpo.hung@sifive.com>
Tue, 22 Dec 2020 01:37:20 +0000 (17:37 -0800)
commitb15ba2cf6fde9b7e8599dc9c5afc412a98aba5be
tree1e262ddd991c494a7232a4d7b588c4f14437957f
parent6e2af4d6046995abf1003ebacfce95415010d574
[RISCV] Add intrinsics for vmacc/vnmsac/vmadd/vnmsub instructions

This defines vmadd, vmacc, vnmsub, and vnmsac intrinsics and
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/D93632
llvm/include/llvm/IR/IntrinsicsRISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/vmacc-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vmacc-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vmadd-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vmadd-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vnmsac-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vnmsac-rv64.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vnmsub-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vnmsub-rv64.ll [new file with mode: 0644]