1; RUN: opt < %s -S -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -loop-unroll | FileCheck %s
2define void @unroll_default() nounwind {
3entry:
4  br label %loop
5
6loop:
7  %iv = phi i32 [ 0, %entry ], [ %inc, %loop ]
8  %inc = add i32 %iv, 1
9  %exitcnd = icmp uge i32 %inc, 1024
10  br i1 %exitcnd, label %exit, label %loop
11
12exit:
13  ret void
14}
15
16; CHECK-LABEL: @unroll_default
17; CHECK:      add
18; CHECK-NEXT: add
19; CHECK-NEXT: add
20; CHECK-NEXT: add
21; CHECK-NEXT: add
22; CHECK-NEXT: add
23; CHECK-NEXT: add
24; CHECK-NEXT: add
25; CHECK-NEXT: add
26; CHECK-NEXT: add
27; CHECK-NEXT: add
28; CHECK-NEXT: add
29; CHECK-NEXT: add
30; CHECK-NEXT: add
31; CHECK-NEXT: add
32; CHECK-NEXT: add
33; CHECK-NEXT: add
34; CHECK-NEXT: add
35; CHECK-NEXT: add
36; CHECK-NEXT: add
37; CHECK-NEXT: add
38; CHECK-NEXT: add
39; CHECK-NEXT: add
40; CHECK-NEXT: add
41; CHECK-NEXT: add
42; CHECK-NEXT: add
43; CHECK-NEXT: add
44; CHECK-NEXT: add
45; CHECK-NEXT: add
46; CHECK-NEXT: add
47; CHECK-NEXT: add
48; CHECK-NEXT: add
49; CHECK-NEXT: icmp
50
51