xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/loop-strength-reduce6.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc < %s -march=x86-64 | not grep inc
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambucdefine fastcc i32 @decodeMP3(i32 %isize, i32* %done) nounwind {
4*f4a2713aSLionel Sambucentry:
5*f4a2713aSLionel Sambuc	br label %cond_true189
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuccond_true189:		; preds = %entry
8*f4a2713aSLionel Sambuc	ret i32 0
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuccond_next191:		; preds = %entry
11*f4a2713aSLionel Sambuc	br label %cond_false.i9
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuccond_false.i9:		; preds = %cond_next191
14*f4a2713aSLionel Sambuc	ret i32 0
15*f4a2713aSLionel Sambuc
16*f4a2713aSLionel Sambuccond_next37.i:		; preds = %cond_next191
17*f4a2713aSLionel Sambuc	br label %cond_true44.i
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel Sambuccond_true44.i:		; preds = %cond_next37.i
20*f4a2713aSLionel Sambuc	br label %bb414.preheader.i
21*f4a2713aSLionel Sambuc
22*f4a2713aSLionel Sambuccond_true11.i.i:		; preds = %cond_true44.i
23*f4a2713aSLionel Sambuc	ret i32 0
24*f4a2713aSLionel Sambuc
25*f4a2713aSLionel Sambuccond_false50.i:		; preds = %cond_next37.i
26*f4a2713aSLionel Sambuc	ret i32 0
27*f4a2713aSLionel Sambuc
28*f4a2713aSLionel Sambucbb414.preheader.i:		; preds = %cond_true44.i
29*f4a2713aSLionel Sambuc	br label %do_layer3.exit
30*f4a2713aSLionel Sambuc
31*f4a2713aSLionel Sambucbb.i18:		; preds = %bb414.preheader.i
32*f4a2713aSLionel Sambuc	br label %cond_true79.i
33*f4a2713aSLionel Sambuc
34*f4a2713aSLionel Sambuccond_true79.i:		; preds = %bb.i18
35*f4a2713aSLionel Sambuc	ret i32 0
36*f4a2713aSLionel Sambuc
37*f4a2713aSLionel Sambucbb331.i:		; preds = %bb358.i, %cond_true.i149.i
38*f4a2713aSLionel Sambuc	br label %cond_false.i151.i
39*f4a2713aSLionel Sambuc
40*f4a2713aSLionel Sambuccond_true.i149.i:		; preds = %bb331.i
41*f4a2713aSLionel Sambuc	br label %bb331.i
42*f4a2713aSLionel Sambuc
43*f4a2713aSLionel Sambuccond_false.i151.i:		; preds = %bb331.i
44*f4a2713aSLionel Sambuc	ret i32 0
45*f4a2713aSLionel Sambuc
46*f4a2713aSLionel Sambucbb163.i.i:		; preds = %bb178.preheader.i.i, %bb163.i.i
47*f4a2713aSLionel Sambuc	%rawout2.451.rec.i.i = phi i64 [ 0, %bb178.preheader.i.i ], [ %indvar.next260.i, %bb163.i.i ]		; <i64> [#uses=2]
48*f4a2713aSLionel Sambuc	%i.052.i.i = trunc i64 %rawout2.451.rec.i.i to i32		; <i32> [#uses=1]
49*f4a2713aSLionel Sambuc	%tmp165.i144.i = shl i32 %i.052.i.i, 5		; <i32> [#uses=1]
50*f4a2713aSLionel Sambuc	%tmp165169.i.i = sext i32 %tmp165.i144.i to i64		; <i64> [#uses=0]
51*f4a2713aSLionel Sambuc	%indvar.next260.i = add i64 %rawout2.451.rec.i.i, 1		; <i64> [#uses=2]
52*f4a2713aSLionel Sambuc	%exitcond261.i = icmp eq i64 %indvar.next260.i, 18		; <i1> [#uses=1]
53*f4a2713aSLionel Sambuc	br i1 %exitcond261.i, label %bb178.preheader.i.i, label %bb163.i.i
54*f4a2713aSLionel Sambuc
55*f4a2713aSLionel Sambucbb178.preheader.i.i:		; preds = %bb163.i.i, %cond_true.i149.i
56*f4a2713aSLionel Sambuc	br label %bb163.i.i
57*f4a2713aSLionel Sambuc
58*f4a2713aSLionel Sambucbb358.i:		; preds = %bb.i18
59*f4a2713aSLionel Sambuc	br label %bb406.i
60*f4a2713aSLionel Sambuc
61*f4a2713aSLionel Sambucbb406.i:		; preds = %bb358.i
62*f4a2713aSLionel Sambuc	ret i32 0
63*f4a2713aSLionel Sambuc
64*f4a2713aSLionel Sambucdo_layer3.exit:		; preds = %bb414.preheader.i
65*f4a2713aSLionel Sambuc	ret i32 0
66*f4a2713aSLionel Sambuc}
67