Special copy SUnit's do not have SDNode's.
[oota-llvm.git] / test / CodeGen / X86 / 2008-01-08-SchedulerCrash.ll
1 ; RUN: llvm-as < %s | llc -march=x86
2
3         %struct.indexentry = type { i32, i8*, i8*, i8*, i8*, i8* }
4
5 define i32 @_bfd_stab_section_find_nearest_line(i32 %offset) nounwind  {
6 entry:
7         %tmp910 = add i32 0, %offset            ; <i32> [#uses=1]
8         br i1 true, label %bb951, label %bb917
9
10 bb917:          ; preds = %entry
11         ret i32 0
12
13 bb951:          ; 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
18 bb967:          ; preds = %bb951
19         ret i32 0
20
21 bb986:          ; 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
30 UnifiedReturnBlock:             ; preds = %bb986
31         ret i32 1
32 }