Skip to content

Commit 40f3708

Browse files
committed
[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.
1 parent 32056aa commit 40f3708

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/test/CodeGen/RISCV/rvv/vrol.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,13 +2789,13 @@ define <vscale x 8 x i64> @intrinsic_vrol_mask_vi_nxv8i64(<vscale x 8 x i64> %0,
27892789
; CHECK-LABEL: intrinsic_vrol_mask_vi_nxv8i64:
27902790
; CHECK: # %bb.0: # %entry
27912791
; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
2792-
; CHECK-NEXT: vror.vi v8, v16, 62, v0.t
2792+
; CHECK-NEXT: vror.vi v8, v16, 2, v0.t
27932793
; CHECK-NEXT: ret
27942794
entry:
27952795
%a = call <vscale x 8 x i64> @llvm.riscv.vrol.mask.nxv8i64(
27962796
<vscale x 8 x i64> %0,
27972797
<vscale x 8 x i64> %1,
2798-
iXLen 2,
2798+
iXLen 62,
27992799
<vscale x 8 x i1> %2,
28002800
iXLen %3, iXLen 1)
28012801

llvm/test/CodeGen/RISCV/rvv/vror.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,13 +2789,13 @@ define <vscale x 8 x i64> @intrinsic_vror_mask_vi_nxv8i64(<vscale x 8 x i64> %0,
27892789
; CHECK-LABEL: intrinsic_vror_mask_vi_nxv8i64:
27902790
; CHECK: # %bb.0: # %entry
27912791
; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
2792-
; CHECK-NEXT: vror.vi v8, v16, 2, v0.t
2792+
; CHECK-NEXT: vror.vi v8, v16, 62, v0.t
27932793
; CHECK-NEXT: ret
27942794
entry:
27952795
%a = call <vscale x 8 x i64> @llvm.riscv.vror.mask.nxv8i64(
27962796
<vscale x 8 x i64> %0,
27972797
<vscale x 8 x i64> %1,
2798-
iXLen 2,
2798+
iXLen 62,
27992799
<vscale x 8 x i1> %2,
28002800
iXLen %3, iXLen 1)
28012801

0 commit comments

Comments
 (0)