[llvm] [GISEL] Fix bugs in G_EXTRACT_SUBVECTOR definition (PR #108848)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 14:49:17 PDT 2024


================
@@ -1778,10 +1778,19 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
       break;
     }
 
-    if (IndexOp.getImm() != 0 &&
-        SrcTy.getElementCount().getKnownMinValue() % IndexOp.getImm() != 0) {
-      report("Index must be a multiple of the source vector's minimum vector "
-             "length",
+    int64_t Idx = IndexOp.getImm();
----------------
topperc wrote:

Should probably treat this as an unsigned value.

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


More information about the llvm-commits mailing list