1 ; RUN: opt < %s -loop-vectorize -mtriple x86_64 -S | FileCheck %s
3 %struct.ST4 = type { i32, i32, i32, i32 }
5 ; The gaps between the memory access in this function are too large for
8 ; Test from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7560
9 define void @test1(%struct.ST4* noalias %B) {
12 ; CHECK-NEXT: br label %for.body
14 ; CHECK-LABEL: for.body:
24 for.body: ; preds = %for.body, %entry
25 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
26 %p1 = getelementptr inbounds %struct.ST4, %struct.ST4* %B, i64 %indvars.iv, i32 0
27 store i32 65536, i32* %p1, align 4
28 %p2 = getelementptr i32, i32* %p1, i32 -2147483648
29 store i32 65536, i32* %p2, align 4
30 %p3 = getelementptr inbounds %struct.ST4, %struct.ST4* %B, i64 %indvars.iv, i32 2
31 store i32 10, i32* %p3, align 4
32 %p4 = getelementptr inbounds %struct.ST4, %struct.ST4* %B, i64 %indvars.iv, i32 3
33 store i32 12, i32* %p4, align 4
34 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
35 %exitcond = icmp eq i64 %indvars.iv.next, 1024
36 br i1 %exitcond, label %for.cond.cleanup, label %for.body
38 for.cond.cleanup: ; preds = %for.body