blob: f31a38e28b35e2a29e2dd8953978e943e4683fb4 [file] [log] [blame]
Evan Cheng2661f5a2008-01-09 23:01:55 +00001; RUN: llvm-as < %s | llc -march=x86
2
3 %struct.indexentry = type { i32, i8*, i8*, i8*, i8*, i8* }
4
5define i32 @_bfd_stab_section_find_nearest_line(i32 %offset) nounwind {
6entry:
7 %tmp910 = add i32 0, %offset ; <i32> [#uses=1]
8 br i1 true, label %bb951, label %bb917
9
10bb917: ; preds = %entry
11 ret i32 0
12
13bb951: ; preds = %bb986, %entry
14 %tmp955 = sdiv i32 0, 2 ; <i32> [#uses=3]
15 %tmp961 = getelementptr %struct.indexentry* null, i32 %tmp955, i32 0 ; <i32*> [#uses=1]
16 br i1 true, label %bb986, label %bb967
17
18bb967: ; preds = %bb951
19 ret i32 0
20
21bb986: ; preds = %bb951
22 %tmp993 = load i32* %tmp961, align 4 ; <i32> [#uses=1]
23 %tmp995 = icmp ugt i32 %tmp993, %tmp910 ; <i1> [#uses=2]
24 %tmp1002 = add i32 %tmp955, 1 ; <i32> [#uses=1]
25 %low.0 = select i1 %tmp995, i32 0, i32 %tmp1002 ; <i32> [#uses=1]
26 %high.0 = select i1 %tmp995, i32 %tmp955, i32 0 ; <i32> [#uses=1]
27 %tmp1006 = icmp eq i32 %low.0, %high.0 ; <i1> [#uses=1]
28 br i1 %tmp1006, label %UnifiedReturnBlock, label %bb951
29
30UnifiedReturnBlock: ; preds = %bb986
31 ret i32 1
32}