Skip to content

Commit 0f64ec8

Browse files
committed
[RISCV][NFC] Make the pointer in the test case for #153709 non-null
The snippet was originally from llvm-reduce but we probably shouldn't use a null pointer in the actual test case. NFC.
1 parent fb14f91 commit 0f64ec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/CodeGen/RISCV/rvv/incorrect-extract-subvector-combine.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
; Previously, an incorrect (extract_subvector (extract_subvector X, C), 0) DAG combine crashed
55
; this snippet.
66

7-
define <8 x i16> @gsm_encode() {
7+
define <8 x i16> @gsm_encode(ptr %p) {
88
; CHECK-LABEL: gsm_encode:
99
; CHECK: # %bb.0: # %entry
1010
; CHECK-NEXT: vsetivli zero, 19, e16, m1, ta, ma
11-
; CHECK-NEXT: vle16.v v8, (zero)
11+
; CHECK-NEXT: vle16.v v8, (a0)
1212
; CHECK-NEXT: vslidedown.vi v9, v8, 12
1313
; CHECK-NEXT: vmv.x.s a0, v9
1414
; CHECK-NEXT: vsetivli zero, 8, e16, mf4, ta, ma
@@ -29,7 +29,7 @@ define <8 x i16> @gsm_encode() {
2929
; CHECK-NEXT: vand.vv v8, v8, v9
3030
; CHECK-NEXT: ret
3131
entry:
32-
%0 = load <19 x i16>, ptr null, align 2
32+
%0 = load <19 x i16>, ptr %p, align 2
3333
%1 = shufflevector <19 x i16> zeroinitializer, <19 x i16> %0, <9 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 28, i32 31, i32 poison, i32 poison>
3434
%2 = shufflevector <9 x i16> %1, <9 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 15>
3535
ret <8 x i16> %2

0 commit comments

Comments
 (0)