[PATCH] D113325: [RISCV] SMUL_LOHI/UMUL_LOHI should expand for RVV.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 8 09:38:48 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG304edbb553d0: [RISCV] SMUL_LOHI/UMUL_LOHI should expand for RVV. (authored by craig.topper).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113325/new/

https://reviews.llvm.org/D113325

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp


Index: llvm/lib/Target/RISCV/RISCVISelLowering.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -533,6 +533,10 @@
       setOperationAction(ISD::SPLAT_VECTOR, VT, Legal);
       setOperationAction(ISD::SPLAT_VECTOR_PARTS, VT, Custom);
 
+      // Vectors implement MULHS/MULHU.
+      setOperationAction(ISD::SMUL_LOHI, VT, Expand);
+      setOperationAction(ISD::UMUL_LOHI, VT, Expand);
+
       setOperationAction(ISD::SMIN, VT, Legal);
       setOperationAction(ISD::SMAX, VT, Legal);
       setOperationAction(ISD::UMIN, VT, Legal);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113325.385535.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211108/7b2dde2c/attachment.bin>


More information about the llvm-commits mailing list