xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/2009-07-22-ScavengerAssert.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv6-apple-darwin10
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker	%struct.cli_ac_alt = type { i8, i8*, i16, i16, %struct.cli_ac_alt* }
4*9880d681SAndroid Build Coastguard Worker	%struct.cli_ac_node = type { i8, i8, %struct.cli_ac_patt*, %struct.cli_ac_node**, %struct.cli_ac_node* }
5*9880d681SAndroid Build Coastguard Worker	%struct.cli_ac_patt = type { i16*, i16*, i16, i16, i8, i32, i32, i8*, i8*, i32, i16, i16, i16, i16, %struct.cli_ac_alt**, i8, i16, %struct.cli_ac_patt*, %struct.cli_ac_patt* }
6*9880d681SAndroid Build Coastguard Worker	%struct.cli_bm_patt = type { i8*, i8*, i16, i16, i8*, i8*, i8, %struct.cli_bm_patt*, i16 }
7*9880d681SAndroid Build Coastguard Worker	%struct.cli_matcher = type { i16, i8, i8*, %struct.cli_bm_patt**, i32*, i32, i8, i8, %struct.cli_ac_node*, %struct.cli_ac_node**, %struct.cli_ac_patt**, i32, i32, i32 }
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdeclare i32 @strlen(i8* nocapture) nounwind readonly
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine i32 @cli_ac_addsig(%struct.cli_matcher* nocapture %root, i8* %virname, i8* %hexsig, i32 %sigid, i16 zeroext %parts, i16 zeroext %partno, i16 zeroext %type, i32 %mindist, i32 %maxdist, i8* %offset, i8 zeroext %target) nounwind {
12*9880d681SAndroid Build Coastguard Workerentry:
13*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb126, label %bb1
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerbb1:		; preds = %entry
16*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %cli_calloc.exit.thread, label %cli_calloc.exit
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workercli_calloc.exit.thread:		; preds = %bb1
19*9880d681SAndroid Build Coastguard Worker	ret i32 -114
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workercli_calloc.exit:		; preds = %bb1
22*9880d681SAndroid Build Coastguard Worker	store i16 %parts, i16* undef, align 4
23*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb52, label %bb4
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Workerbb4:		; preds = %cli_calloc.exit
26*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb.i, label %bb1.i3
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Workerbb.i:		; preds = %bb4
29*9880d681SAndroid Build Coastguard Worker	unreachable
30*9880d681SAndroid Build Coastguard Worker
31*9880d681SAndroid Build Coastguard Workerbb1.i3:		; preds = %bb4
32*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb2.i4, label %cli_strdup.exit
33*9880d681SAndroid Build Coastguard Worker
34*9880d681SAndroid Build Coastguard Workerbb2.i4:		; preds = %bb1.i3
35*9880d681SAndroid Build Coastguard Worker	ret i32 -114
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Workercli_strdup.exit:		; preds = %bb1.i3
38*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %cli_calloc.exit54.thread, label %cli_calloc.exit54
39*9880d681SAndroid Build Coastguard Worker
40*9880d681SAndroid Build Coastguard Workercli_calloc.exit54.thread:		; preds = %cli_strdup.exit
41*9880d681SAndroid Build Coastguard Worker	ret i32 -114
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Workercli_calloc.exit54:		; preds = %cli_strdup.exit
44*9880d681SAndroid Build Coastguard Worker	br label %bb45
45*9880d681SAndroid Build Coastguard Worker
46*9880d681SAndroid Build Coastguard Workercli_calloc.exit70.thread:		; preds = %bb45
47*9880d681SAndroid Build Coastguard Worker	unreachable
48*9880d681SAndroid Build Coastguard Worker
49*9880d681SAndroid Build Coastguard Workercli_calloc.exit70:		; preds = %bb45
50*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb.i83, label %bb1.i84
51*9880d681SAndroid Build Coastguard Worker
52*9880d681SAndroid Build Coastguard Workerbb.i83:		; preds = %cli_calloc.exit70
53*9880d681SAndroid Build Coastguard Worker	unreachable
54*9880d681SAndroid Build Coastguard Worker
55*9880d681SAndroid Build Coastguard Workerbb1.i84:		; preds = %cli_calloc.exit70
56*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb2.i85, label %bb17
57*9880d681SAndroid Build Coastguard Worker
58*9880d681SAndroid Build Coastguard Workerbb2.i85:		; preds = %bb1.i84
59*9880d681SAndroid Build Coastguard Worker	unreachable
60*9880d681SAndroid Build Coastguard Worker
61*9880d681SAndroid Build Coastguard Workerbb17:		; preds = %bb1.i84
62*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb22, label %bb.nph
63*9880d681SAndroid Build Coastguard Worker
64*9880d681SAndroid Build Coastguard Workerbb.nph:		; preds = %bb17
65*9880d681SAndroid Build Coastguard Worker	br label %bb18
66*9880d681SAndroid Build Coastguard Worker
67*9880d681SAndroid Build Coastguard Workerbb18:		; preds = %bb18, %bb.nph
68*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb18, label %bb22
69*9880d681SAndroid Build Coastguard Worker
70*9880d681SAndroid Build Coastguard Workerbb22:		; preds = %bb18, %bb17
71*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb25, label %bb43.preheader
72*9880d681SAndroid Build Coastguard Worker
73*9880d681SAndroid Build Coastguard Workerbb43.preheader:		; preds = %bb22
74*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %bb28, label %bb45
75*9880d681SAndroid Build Coastguard Worker
76*9880d681SAndroid Build Coastguard Workerbb25:		; preds = %bb22
77*9880d681SAndroid Build Coastguard Worker	unreachable
78*9880d681SAndroid Build Coastguard Worker
79*9880d681SAndroid Build Coastguard Workerbb28:		; preds = %bb43.preheader
80*9880d681SAndroid Build Coastguard Worker	unreachable
81*9880d681SAndroid Build Coastguard Worker
82*9880d681SAndroid Build Coastguard Workerbb45:		; preds = %bb43.preheader, %cli_calloc.exit54
83*9880d681SAndroid Build Coastguard Worker	br i1 undef, label %cli_calloc.exit70.thread, label %cli_calloc.exit70
84*9880d681SAndroid Build Coastguard Worker
85*9880d681SAndroid Build Coastguard Workerbb52:		; preds = %cli_calloc.exit
86*9880d681SAndroid Build Coastguard Worker	%0 = load i16, i16* undef, align 4		; <i16> [#uses=1]
87*9880d681SAndroid Build Coastguard Worker	%1 = icmp eq i16 %0, 0		; <i1> [#uses=1]
88*9880d681SAndroid Build Coastguard Worker	%iftmp.20.0 = select i1 %1, i8* %hexsig, i8* null		; <i8*> [#uses=1]
89*9880d681SAndroid Build Coastguard Worker	%2 = tail call  i32 @strlen(i8* %iftmp.20.0) nounwind readonly		; <i32> [#uses=0]
90*9880d681SAndroid Build Coastguard Worker	unreachable
91*9880d681SAndroid Build Coastguard Worker
92*9880d681SAndroid Build Coastguard Workerbb126:		; preds = %entry
93*9880d681SAndroid Build Coastguard Worker	ret i32 -117
94*9880d681SAndroid Build Coastguard Worker}
95