[llvm] [RISCV][VLOPT] Add vector mask producing integer instructions to isSupportedInstr and getOperandInfo (PR #119733)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 10:59:05 PST 2024


================
@@ -438,7 +444,11 @@ static OperandInfo getOperandInfo(const MachineInstr &MI,
   case RISCV::VWMACC_VX:
   case RISCV::VWMACCSU_VV:
   case RISCV::VWMACCSU_VX:
-  case RISCV::VWMACCUS_VX: {
+  case RISCV::VWMACCUS_VX:
+  // Vector Single-Width Fractional Multiply with Rounding and Saturation
+  // Destination EEW=2*SEW and EMUL=2*EMUL. Source EEW=SEW and EMUL=LMUL.
+  case RISCV::VSMUL_VV:
----------------
topperc wrote:

vsmul doesn't produce a 2*sew result. It does internally and then shift and truncates it to sew

https://github.com/llvm/llvm-project/pull/119733


More information about the llvm-commits mailing list