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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 13:25:43 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/170747

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

>From 4d4ab9524da2da7e5897219303153d57aeb27897 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Thu, 4 Dec 2025 13:24:30 -0800
Subject: [PATCH] [RISCV] Use a valid AVL immedaite in
 allone-masked-to-unmasked.mir. NFC

AVL operands should be a register, a uimm5, or -1.
---
 llvm/test/CodeGen/RISCV/rvv/allone-masked-to-unmasked.mir | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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