Fixed some bugs.
[llvm/zpu.git] / test / Transforms / LoopStrengthReduce / 2009-11-10-LSRCrash.ll
blob4032a599e8d94ae4b1569423c3254d0d9cef5396
1 ; RUN: llc < %s -mtriple=i386-apple-darwin11
3 define void @_ZN4llvm20SelectionDAGLowering14visitInlineAsmENS_8CallSiteE() nounwind ssp align 2 {
4 entry:
5   br i1 undef, label %bb3.i, label %bb4.i
7 bb3.i:                                            ; preds = %entry
8   unreachable
10 bb4.i:                                            ; preds = %entry
11   br i1 undef, label %bb.i.i, label %_ZNK4llvm8CallSite14getCalledValueEv.exit
13 bb.i.i:                                           ; preds = %bb4.i
14   unreachable
16 _ZNK4llvm8CallSite14getCalledValueEv.exit:        ; preds = %bb4.i
17   br i1 undef, label %_ZN4llvm4castINS_9InlineAsmEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_.exit, label %bb6.i
19 bb6.i:                                            ; preds = %_ZNK4llvm8CallSite14getCalledValueEv.exit
20   unreachable
22 _ZN4llvm4castINS_9InlineAsmEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_.exit: ; preds = %_ZNK4llvm8CallSite14getCalledValueEv.exit
23   br i1 undef, label %_ZL25hasInlineAsmMemConstraintRSt6vectorIN4llvm9InlineAsm14ConstraintInfoESaIS2_EERKNS0_14TargetLoweringE.exit, label %bb.i
25 bb.i:                                             ; preds = %_ZN4llvm4castINS_9InlineAsmEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_.exit
26   br label %_ZL25hasInlineAsmMemConstraintRSt6vectorIN4llvm9InlineAsm14ConstraintInfoESaIS2_EERKNS0_14TargetLoweringE.exit
28 _ZL25hasInlineAsmMemConstraintRSt6vectorIN4llvm9InlineAsm14ConstraintInfoESaIS2_EERKNS0_14TargetLoweringE.exit: ; preds = %bb.i, %_ZN4llvm4castINS_9InlineAsmEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_.exit
29   br i1 undef, label %bb50, label %bb27
31 bb27:                                             ; preds = %_ZL25hasInlineAsmMemConstraintRSt6vectorIN4llvm9InlineAsm14ConstraintInfoESaIS2_EERKNS0_14TargetLoweringE.exit
32   br i1 undef, label %bb1.i727, label %bb.i.i726
34 bb.i.i726:                                        ; preds = %bb27
35   unreachable
37 bb1.i727:                                         ; preds = %bb27
38   unreachable
40 bb50:                                             ; preds = %_ZL25hasInlineAsmMemConstraintRSt6vectorIN4llvm9InlineAsm14ConstraintInfoESaIS2_EERKNS0_14TargetLoweringE.exit
41   br label %bb107
43 bb51:                                             ; preds = %bb107
44   br i1 undef, label %bb105, label %bb106
46 bb105:                                            ; preds = %bb51
47   unreachable
49 bb106:                                            ; preds = %bb51
50   br label %bb107
52 bb107:                                            ; preds = %bb106, %bb50
53   br i1 undef, label %bb108, label %bb51
55 bb108:                                            ; preds = %bb107
56   br i1 undef, label %bb242, label %bb114
58 bb114:                                            ; preds = %bb108
59   br i1 undef, label %bb141, label %bb116
61 bb116:                                            ; preds = %bb114
62   br i1 undef, label %bb120, label %bb121
64 bb120:                                            ; preds = %bb116
65   unreachable
67 bb121:                                            ; preds = %bb116
68   unreachable
70 bb141:                                            ; preds = %bb114
71   br i1 undef, label %bb182, label %bb143
73 bb143:                                            ; preds = %bb141
74   br label %bb157
76 bb144:                                            ; preds = %bb.i.i.i843
77   switch i32 undef, label %bb155 [
78     i32 2, label %bb153
79     i32 6, label %bb153
80     i32 4, label %bb153
81   ]
83 bb153:                                            ; preds = %bb144, %bb144, %bb144
84   %indvar.next = add i32 %indvar, 1               ; <i32> [#uses=1]
85   br label %bb157
87 bb155:                                            ; preds = %bb144
88   unreachable
90 bb157:                                            ; preds = %bb153, %bb143
91   %indvar = phi i32 [ %indvar.next, %bb153 ], [ 0, %bb143 ] ; <i32> [#uses=2]
92   %0 = icmp eq i32 undef, %indvar                 ; <i1> [#uses=1]
93   switch i16 undef, label %bb6.i841 [
94     i16 9, label %_ZN4llvm4castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS5_.exit
95     i16 26, label %_ZN4llvm4castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS5_.exit
96   ]
98 bb6.i841:                                         ; preds = %bb157
99   unreachable
101 _ZN4llvm4castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS5_.exit: ; preds = %bb157, %bb157
102   br i1 undef, label %bb.i.i.i843, label %bb1.i.i.i844
104 bb.i.i.i843:                                      ; preds = %_ZN4llvm4castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS5_.exit
105   br i1 %0, label %bb158, label %bb144
107 bb1.i.i.i844:                                     ; preds = %_ZN4llvm4castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS5_.exit
108   unreachable
110 bb158:                                            ; preds = %bb.i.i.i843
111   br i1 undef, label %bb177, label %bb176
113 bb176:                                            ; preds = %bb158
114   unreachable
116 bb177:                                            ; preds = %bb158
117   br i1 undef, label %bb179, label %bb178
119 bb178:                                            ; preds = %bb177
120   unreachable
122 bb179:                                            ; preds = %bb177
123   unreachable
125 bb182:                                            ; preds = %bb141
126   unreachable
128 bb242:                                            ; preds = %bb108
129   unreachable