[RISCV] Remove overly restrictive assert from negateFMAOpcode.
authorCraig Topper <craig.topper@sifive.com>
Wed, 7 Jun 2023 01:34:15 +0000 (18:34 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 7 Jun 2023 01:55:58 +0000 (18:55 -0700)
commit2b09f53b32a5eea3ff1c33319fb541aa570e456b
tree7b99880933a95836924fb5a7e8f881f560d77971
parentd4c5b452934a31f9b3685cf58bd682104b686d1a
[RISCV] Remove overly restrictive assert from negateFMAOpcode.

It's possible that both multiplicands are being negated. This won't
change the opcode, but we can delete the two negates. Allow this
case to get through negateFMAOpcode.

I think D152260 will also fix this test case, but in the future
it may be possible for an fneg to appear after we've already converted
to RISCVISD opcodes in which case D152260 won't help.

Reviewed By: fakepaper56

Differential Revision: https://reviews.llvm.org/D152296
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vfma-vp.ll