1 ; RUN: not opt -loop-unroll -unroll-peel-count=2 -unroll-count=2 -S < %s 2>&1 | FileCheck %s
3 ; CHECK: LLVM ERROR: Cannot specify both explicit peel count and explicit unroll count
5 @a = global [8 x i32] zeroinitializer, align 16
11 for.body: ; preds = %entry, %for.body
12 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
13 %arrayidx = getelementptr inbounds [8 x i32], [8 x i32]* @a, i64 0, i64 %indvars.iv
14 %0 = trunc i64 %indvars.iv to i32
15 store i32 %0, i32* %arrayidx, align 4
16 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
17 %exitcond = icmp ne i64 %indvars.iv.next, 8
18 br i1 %exitcond, label %for.body, label %for.exit
20 for.exit: ; preds = %for.body