Skip to content

Commit 9ef28cf

Browse files
authored
VectorCombine: add test for crash #88796 (#91200)
1 parent 3aba4b5 commit 9ef28cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; REQUIRES: asserts
2+
; RUN: not --crash opt -passes=vector-combine -disable-output %s
3+
4+
define i32 @test() {
5+
entry:
6+
%0 = tail call i16 @llvm.vector.reduce.and.nxv8i16(<vscale x 8 x i16> trunc (<vscale x 8 x i32> shufflevector (<vscale x 8 x i32> insertelement (<vscale x 8 x i32> poison, i32 268435456, i64 0), <vscale x 8 x i32> poison, <vscale x 8 x i32> zeroinitializer) to <vscale x 8 x i16>))
7+
ret i32 0
8+
}
9+
10+
declare i16 @llvm.vector.reduce.and.nxv8i16(<vscale x 8 x i16>)
11+

0 commit comments

Comments
 (0)