[PATCH] D121376: [RISCV][RVV] Introduce roundmode operand to PseudoVAADD instruction
ShihPo Hung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 31 00:19:27 PDT 2022
arcbbb added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVVXRMRegister.cpp:94
+ MachineOperand &RoundModeOp = MI.getOperand(Idx.getValue());
+ unsigned NewVXRMImm = RoundModeOp.getImm() & 0x7;
+ if (NewVXRMImm == CurVXRMImm)
----------------
craig.topper wrote:
> When would it be greater than 7? And if that can happen then what prevents values of 5-7 which aren't defined.
I think only 0~4 is possible. Then I remove the mask to avoid confusing.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121376/new/
https://reviews.llvm.org/D121376
More information about the llvm-commits
mailing list