brintos

brintos / llvm-project-archived public Read only

0
0
Text · 810 B · ecdb881 Raw
23 lines · plain
1; RUN: not opt -passes=loop-unroll -unroll-peel-count=2 -unroll-count=2 -S < %s 2>&1 | FileCheck %s2 3; CHECK: LLVM ERROR: Cannot specify both explicit peel count and explicit unroll count4 5@a = global [8 x i32] zeroinitializer, align 166 7define void @test1() {8entry:9  br label %for.body10 11for.body:                                         ; preds = %entry, %for.body12  %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]13  %arrayidx = getelementptr inbounds [8 x i32], ptr @a, i64 0, i64 %indvars.iv14  %0 = trunc i64 %indvars.iv to i3215  store i32 %0, ptr %arrayidx, align 416  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 117  %exitcond = icmp ne i64 %indvars.iv.next, 818  br i1 %exitcond, label %for.body, label %for.exit19 20for.exit:                        ; preds = %for.body21  ret void22}23