1 ; RUN: opt -S < %s -loop-vectorize -force-vector-width=4 | FileCheck %s
3 declare void @llvm.sideeffect()
5 ; Vectorization across a @llvm.sideeffect.
7 ; CHECK-LABEL: store_ones
8 ; CHECK: store <4 x float>
9 define void @store_ones(float* %p, i64 %n) nounwind {
14 %i.02 = phi i64 [ 0, %bb7.lr.ph ], [ %tmp13, %bb7 ]
15 call void @llvm.sideeffect()
16 %tmp10 = getelementptr inbounds float, float* %p, i64 %i.02
17 store float 1.0, float* %tmp10, align 4
18 %tmp13 = add i64 %i.02, 1
19 %tmp6 = icmp ult i64 %tmp13, %n
20 br i1 %tmp6, label %bb7, label %bb14