blob: 32188cfd13fc95861493d0471f6c487f462f3d94 [file] [log] [blame]
Chris Lattner0d4603b2006-04-20 05:57:43 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5
2
3void %test(sbyte* %stack) {
4entry:
5 %tmp9 = seteq int 0, 0 ; <bool> [#uses=1]
6 %tmp30 = seteq uint 0, 0 ; <bool> [#uses=1]
7 br bool %tmp30, label %cond_next54, label %cond_true31
8
9cond_true860: ; preds = %bb855
10 %tmp879 = tail call <4 x float> %llvm.ppc.altivec.vmaddfp( <4 x float> zeroinitializer, <4 x float> zeroinitializer, <4 x float> zeroinitializer ) ; <<4 x float>> [#uses=1]
11 %tmp880 = cast <4 x float> %tmp879 to <4 x int> ; <<4 x int>> [#uses=2]
12 %tmp883 = shufflevector <4 x int> %tmp880, <4 x int> undef, <4 x uint> < uint 1, uint 1, uint 1, uint 1 > ; <<4 x int>> [#uses=1]
13 %tmp883 = cast <4 x int> %tmp883 to <4 x float> ; <<4 x float>> [#uses=1]
14 %tmp885 = shufflevector <4 x int> %tmp880, <4 x int> undef, <4 x uint> < uint 2, uint 2, uint 2, uint 2 > ; <<4 x int>> [#uses=1]
15 %tmp885 = cast <4 x int> %tmp885 to <4 x float> ; <<4 x float>> [#uses=1]
16 br label %cond_next905
17
18cond_true31: ; preds = %entry
19 ret void
20
21cond_next54: ; preds = %entry
22 br bool %tmp9, label %cond_false385, label %bb279
23
24bb279: ; preds = %cond_next54
25 ret void
26
27cond_false385: ; preds = %cond_next54
28 %tmp388 = seteq uint 0, 0 ; <bool> [#uses=1]
29 br bool %tmp388, label %cond_next463, label %cond_true389
30
31cond_true389: ; preds = %cond_false385
32 ret void
33
34cond_next463: ; preds = %cond_false385
35 %tmp1208107 = setgt sbyte* null, %stack ; <bool> [#uses=1]
36 br bool %tmp1208107, label %cond_true1209.preheader, label %bb1212
37
38cond_true498: ; preds = %cond_true1209.preheader
39 ret void
40
41cond_true519: ; preds = %cond_true1209.preheader
42 %bothcond = or bool false, false ; <bool> [#uses=1]
43 br bool %bothcond, label %bb855, label %bb980
44
45cond_false548: ; preds = %cond_true1209.preheader
46 ret void
47
48bb855: ; preds = %cond_true519
49 %tmp859 = seteq int 0, 0 ; <bool> [#uses=1]
50 br bool %tmp859, label %cond_true860, label %cond_next905
51
52cond_next905: ; preds = %bb855, %cond_true860
53 %vfpw2.4 = phi <4 x float> [ %tmp885, %cond_true860 ], [ undef, %bb855 ] ; <<4 x float>> [#uses=0]
54 %vfpw1.4 = phi <4 x float> [ %tmp883, %cond_true860 ], [ undef, %bb855 ] ; <<4 x float>> [#uses=0]
55 %tmp930 = cast <4 x float> zeroinitializer to <4 x int> ; <<4 x int>> [#uses=0]
56 ret void
57
58bb980: ; preds = %cond_true519
59 ret void
60
61cond_true1209.preheader: ; preds = %cond_next463
62 %tmp496 = and uint 0, 12288 ; <uint> [#uses=1]
63 switch uint %tmp496, label %cond_false548 [
64 uint 0, label %cond_true498
65 uint 4096, label %cond_true519
66 ]
67
68bb1212: ; preds = %cond_next463
69 ret void
70}
71
72declare <4 x float> %llvm.ppc.altivec.vmaddfp(<4 x float>, <4 x float>, <4 x float>)