1 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
2 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s
4 @mode_table = global [4 x i32] zeroinitializer ; <ptr> [#uses=1]
8 ; CHECK-NEXT: Determining loop execution counts for: @f
9 ; CHECK-NEXT: Loop %bb: <multiple exits> Unpredictable backedge-taken count.
10 ; CHECK-NEXT: exit count for bb: ***COULDNOTCOMPUTE***
11 ; CHECK-NEXT: exit count for bb2: 1
12 ; CHECK-NEXT: Loop %bb: constant max backedge-taken count is 1
13 ; CHECK-NEXT: Loop %bb: symbolic max backedge-taken count is 1
14 ; CHECK-NEXT: symbolic max exit count for bb: ***COULDNOTCOMPUTE***
15 ; CHECK-NEXT: symbolic max exit count for bb2: 1
16 ; CHECK-NEXT: Loop %bb: Unpredictable predicated backedge-taken count.
19 tail call i32 @fegetround( ) ; <i32>:0 [#uses=1]
22 bb: ; preds = %bb4, %entry
23 %mode.0 = phi i8 [ 0, %entry ], [ %indvar.next, %bb4 ] ; <i8> [#uses=4]
24 zext i8 %mode.0 to i32 ; <i32>:1 [#uses=1]
25 getelementptr [4 x i32], ptr @mode_table, i32 0, i32 %1 ; <ptr>:2 [#uses=1]
26 load i32, ptr %2, align 4 ; <i32>:3 [#uses=1]
27 icmp eq i32 %3, %0 ; <i1>:4 [#uses=1]
28 br i1 %4, label %bb1, label %bb2
34 icmp eq i8 %mode.0, 1 ; <i1>:5 [#uses=1]
35 br i1 %5, label %bb5, label %bb4
38 %indvar.next = add i8 %mode.0, 1 ; <i8> [#uses=1]
42 tail call void @raise_exception( ) noreturn
46 declare i32 @fegetround()
48 declare void @raise_exception() noreturn