[llvm] 40f3708 - [RISCV] Add a test case that would have failed before D156974. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 3 11:42:33 PDT 2023
Author: Craig Topper
Date: 2023-08-03T11:23:55-07:00
New Revision: 40f3708205430a7a562d58f48fd9c294fb80d5e0
URL: https://github.com/llvm/llvm-project/commit/40f3708205430a7a562d58f48fd9c294fb80d5e0
DIFF: https://github.com/llvm/llvm-project/commit/40f3708205430a7a562d58f48fd9c294fb80d5e0.diff
LOG: [RISCV] Add a test case that would have failed before D156974. NFC
Tweak the immediate on two vror.vi test cases to use a uimm6 immediate
that would have failed before D156974 when we were looking for a simm6
immediate.
Added:
Modified:
llvm/test/CodeGen/RISCV/rvv/vrol.ll
llvm/test/CodeGen/RISCV/rvv/vror.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/RISCV/rvv/vrol.ll b/llvm/test/CodeGen/RISCV/rvv/vrol.ll
index 0c446045de0b3c..71cd7ddebadc8b 100644
--- a/llvm/test/CodeGen/RISCV/rvv/vrol.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/vrol.ll
@@ -2789,13 +2789,13 @@ define <vscale x 8 x i64> @intrinsic_vrol_mask_vi_nxv8i64(<vscale x 8 x i64> %0,
; CHECK-LABEL: intrinsic_vrol_mask_vi_nxv8i64:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
-; CHECK-NEXT: vror.vi v8, v16, 62, v0.t
+; CHECK-NEXT: vror.vi v8, v16, 2, v0.t
; CHECK-NEXT: ret
entry:
%a = call <vscale x 8 x i64> @llvm.riscv.vrol.mask.nxv8i64(
<vscale x 8 x i64> %0,
<vscale x 8 x i64> %1,
- iXLen 2,
+ iXLen 62,
<vscale x 8 x i1> %2,
iXLen %3, iXLen 1)
diff --git a/llvm/test/CodeGen/RISCV/rvv/vror.ll b/llvm/test/CodeGen/RISCV/rvv/vror.ll
index 701690392d13a9..3d4db2bd977f81 100644
--- a/llvm/test/CodeGen/RISCV/rvv/vror.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/vror.ll
@@ -2789,13 +2789,13 @@ define <vscale x 8 x i64> @intrinsic_vror_mask_vi_nxv8i64(<vscale x 8 x i64> %0,
; CHECK-LABEL: intrinsic_vror_mask_vi_nxv8i64:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
-; CHECK-NEXT: vror.vi v8, v16, 2, v0.t
+; CHECK-NEXT: vror.vi v8, v16, 62, v0.t
; CHECK-NEXT: ret
entry:
%a = call <vscale x 8 x i64> @llvm.riscv.vror.mask.nxv8i64(
<vscale x 8 x i64> %0,
<vscale x 8 x i64> %1,
- iXLen 2,
+ iXLen 62,
<vscale x 8 x i1> %2,
iXLen %3, iXLen 1)
More information about the llvm-commits
mailing list