[llvm] 72938d5 - [RISCV] Use a valid AVL immediate in allone-masked-to-unmasked.mir. NFC (#170747)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 13:56:48 PST 2025


Author: Craig Topper
Date: 2025-12-04T21:56:44Z
New Revision: 72938d56eacb62a1f7858ce04a5a5b90ce88894d

URL: https://github.com/llvm/llvm-project/commit/72938d56eacb62a1f7858ce04a5a5b90ce88894d
DIFF: https://github.com/llvm/llvm-project/commit/72938d56eacb62a1f7858ce04a5a5b90ce88894d.diff

LOG: [RISCV] Use a valid AVL immediate in allone-masked-to-unmasked.mir. NFC (#170747)

AVL operands should be a register, a uimm5, or -1.

Added: 
    

Modified: 
    llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir b/llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir
index 97654c050f81c..a1e45a6740d70 100644
--- a/llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir
+++ b/llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir
@@ -9,8 +9,8 @@ body: |
     ; CHECK-LABEL: name: vcpop.m
     ; CHECK: %allones:vr = PseudoVMSET_M_B64 $noreg, 0 /* e8 */
     ; CHECK-NEXT: $v0 = COPY %allones
-    ; CHECK-NEXT: [[PseudoVCPOP_M_B64_:%[0-9]+]]:gpr = PseudoVCPOP_M_B64 $noreg, 42, 0 /* e8 */
+    ; CHECK-NEXT: [[PseudoVCPOP_M_B64_:%[0-9]+]]:gpr = PseudoVCPOP_M_B64 $noreg, 21, 0 /* e8 */
     %allones:vr = PseudoVMSET_M_B64 $noreg, 0
     $v0 = COPY %allones
-    %2:gpr = PseudoVCPOP_M_B64_MASK $noreg, $v0, 42, 0
+    %2:gpr = PseudoVCPOP_M_B64_MASK $noreg, $v0, 21, 0
 ...


        


More information about the llvm-commits mailing list