[RISCV] Fix `vmsge{u}.vx` lowering by not adding the mask operand if `vd == v0`
According to `riscv-v-spec-1.0.pdf` page 52: > masked va >= x, vd == v0 > pseudoinstruction: vmsge{u}.vx vd, va, x, v0.t, vt > expansion: vmslt{u}.vx vt, va, x; vmandn.mm vd, vd, vt The resulting `vmslt{u}.vx` is not masked. This patch fixes the logic in `RISCVAsmParser`, to make the behavior consistent with the case "masked va >= x, any vd" in the later part of the code, where no mask op is added. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D158392
Loading
Please sign in to comment