Skip to content

Commit 11d115d

Browse files
committed
[RISCV] Adjust test case to show wrong stride. NFC
See #82506 (comment)
1 parent 1eeeab8 commit 11d115d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-gather.ll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15093,33 +15093,33 @@ define <32 x i64> @mgather_strided_split(ptr %base) {
1509315093
define <4 x i32> @masked_gather_widen_sew_negative_stride(ptr %base) {
1509415094
; RV32V-LABEL: masked_gather_widen_sew_negative_stride:
1509515095
; RV32V: # %bb.0:
15096-
; RV32V-NEXT: addi a0, a0, -128
15097-
; RV32V-NEXT: li a1, -128
15096+
; RV32V-NEXT: addi a0, a0, -120
15097+
; RV32V-NEXT: li a1, 120
1509815098
; RV32V-NEXT: vsetivli zero, 2, e64, m1, ta, ma
1509915099
; RV32V-NEXT: vlse64.v v8, (a0), a1
1510015100
; RV32V-NEXT: ret
1510115101
;
1510215102
; RV64V-LABEL: masked_gather_widen_sew_negative_stride:
1510315103
; RV64V: # %bb.0:
15104-
; RV64V-NEXT: addi a0, a0, -128
15105-
; RV64V-NEXT: li a1, -128
15104+
; RV64V-NEXT: addi a0, a0, -120
15105+
; RV64V-NEXT: li a1, 120
1510615106
; RV64V-NEXT: vsetivli zero, 2, e64, m1, ta, ma
1510715107
; RV64V-NEXT: vlse64.v v8, (a0), a1
1510815108
; RV64V-NEXT: ret
1510915109
;
1511015110
; RV32ZVE32F-LABEL: masked_gather_widen_sew_negative_stride:
1511115111
; RV32ZVE32F: # %bb.0:
15112-
; RV32ZVE32F-NEXT: lui a1, 16392
15113-
; RV32ZVE32F-NEXT: addi a1, a1, 1152
15112+
; RV32ZVE32F-NEXT: lui a1, 16393
15113+
; RV32ZVE32F-NEXT: addi a1, a1, -888
1511415114
; RV32ZVE32F-NEXT: vsetivli zero, 4, e32, m1, ta, ma
1511515115
; RV32ZVE32F-NEXT: vmv.s.x v9, a1
1511615116
; RV32ZVE32F-NEXT: vluxei8.v v8, (a0), v9
1511715117
; RV32ZVE32F-NEXT: ret
1511815118
;
1511915119
; RV64ZVE32F-LABEL: masked_gather_widen_sew_negative_stride:
1512015120
; RV64ZVE32F: # %bb.0:
15121-
; RV64ZVE32F-NEXT: addi a1, a0, 128
15122-
; RV64ZVE32F-NEXT: lw a2, 132(a0)
15121+
; RV64ZVE32F-NEXT: addi a1, a0, 136
15122+
; RV64ZVE32F-NEXT: lw a2, 140(a0)
1512315123
; RV64ZVE32F-NEXT: lw a3, 0(a0)
1512415124
; RV64ZVE32F-NEXT: lw a0, 4(a0)
1512515125
; RV64ZVE32F-NEXT: vsetivli zero, 4, e32, m1, ta, ma
@@ -15128,7 +15128,7 @@ define <4 x i32> @masked_gather_widen_sew_negative_stride(ptr %base) {
1512815128
; RV64ZVE32F-NEXT: vslide1down.vx v8, v8, a3
1512915129
; RV64ZVE32F-NEXT: vslide1down.vx v8, v8, a0
1513015130
; RV64ZVE32F-NEXT: ret
15131-
%ptrs = getelementptr i32, ptr %base, <4 x i64> <i64 32, i64 33, i64 0, i64 1>
15131+
%ptrs = getelementptr i32, ptr %base, <4 x i64> <i64 34, i64 35, i64 0, i64 1>
1513215132
%x = call <4 x i32> @llvm.masked.gather.v4i32.v32p0(<4 x ptr> %ptrs, i32 8, <4 x i1> shufflevector(<4 x i1> insertelement(<4 x i1> poison, i1 true, i32 0), <4 x i1> poison, <4 x i32> zeroinitializer), <4 x i32> poison)
1513315133
ret <4 x i32> %x
1513415134
}

0 commit comments

Comments
 (0)