; RUN: opt < %s -basic-aa -loop-vectorize -force-vector-width=4 -force-vector-interleave=1 -dce -instcombine -S | FileCheck %s ; RUN: opt < %s -basic-aa -loop-vectorize -force-vector-width=4 -force-vector-interleave=4 -dce -instcombine -S | FileCheck %s -check-prefix=UNROLL target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" @b = common global [2048 x i32] zeroinitializer, align 16 @c = common global [2048 x i32] zeroinitializer, align 16 @a = common global [2048 x i32] zeroinitializer, align 16 @G = common global [32 x [1024 x i32]] zeroinitializer, align 16 @ub = common global [1024 x i32] zeroinitializer, align 16 @uc = common global [1024 x i32] zeroinitializer, align 16 @d = common global [2048 x i32] zeroinitializer, align 16 @fa = common global [1024 x float] zeroinitializer, align 16 @fb = common global [1024 x float] zeroinitializer, align 16 @ic = common global [1024 x i32] zeroinitializer, align 16 @da = common global [1024 x float] zeroinitializer, align 16 @db = common global [1024 x float] zeroinitializer, align 16 @dc = common global [1024 x float] zeroinitializer, align 16 @dd = common global [1024 x float] zeroinitializer, align 16 @dj = common global [1024 x i32] zeroinitializer, align 16 ;CHECK-LABEL: @example1( ;CHECK: load <4 x i32> ;CHECK: add nsw <4 x i32> ;CHECK: store <4 x i32> ;CHECK: ret void ;UNROLL-LABEL: @example1( ;UNROLL: load <4 x i32> ;UNROLL: load <4 x i32> ;UNROLL: load <4 x i32> ;UNROLL: load <4 x i32> ;UNROLL: add nsw <4 x i32> ;UNROLL: add nsw <4 x i32> ;UNROLL: add nsw <4 x i32> ;UNROLL: add nsw <4 x i32> ;UNROLL: store <4 x i32> ;UNROLL: store <4 x i32> ;UNROLL: store <4 x i32> ;UNROLL: store <4 x i32> ;UNROLL: ret void define void @example1() nounwind uwtable ssp { br label %1 ;