[RISCV][RVV] Add Uses = [FRM] and mayRaiseFPException = true to RVV instructions
authorShihPo Hung <shihpo.hung@sifive.com>
Mon, 7 Mar 2022 07:42:49 +0000 (23:42 -0800)
committerShihPo Hung <shihpo.hung@sifive.com>
Thu, 31 Mar 2022 08:33:17 +0000 (01:33 -0700)
commit2f1261abe4b704781ed1504065072d34d506f984
treebb857c52a0bac107233f3a56b0236646e93a42ba
parentb65267ca7bd160e4eb4853650c158058ec7a3ccb
[RISCV][RVV] Add Uses = [FRM] and mayRaiseFPException = true to RVV instructions

This patch adds Uses = [FRM] and mayRaiseFPException = true to following
instructions:

VFADD, VFSUB, VFRSUB, VFMUL, VFDIV, VFRDIV
VFWADD, VFWSUB, VFWMUL
VFMADD, VFMACC, VFMSAC, VFMSUB
VFNMADD, VFNMACC, VFNMSAC, VVFNMSUB
VFWMACC, VFWMSAC,
VFWNMACC, VFWNMSAC
VFSQRT, VFREC7
VFREDOSUM, VFREDUSUM,
VFWREDOSUM, VFWREDUSUM
and only adds mayRaiseFPException = true to following instructions:

VFRSQRT7,
VFMIN, VFMAX, VFREDMIN, VFREDMAX
VMFEQ, VMFNE, VMFLT,VMFLE, VMFGT, VMFGE

Reviewed By: rogfer01

Differential Revision: https://reviews.llvm.org/D121087
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td