Chris Lattner | 0d4603b | 2006-04-20 05:57:43 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 |
| 2 | |
| 3 | void %test(sbyte* %stack) { |
| 4 | entry: |
| 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 | |
| 9 | cond_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 | |
| 18 | cond_true31: ; preds = %entry |
| 19 | ret void |
| 20 | |
| 21 | cond_next54: ; preds = %entry |
| 22 | br bool %tmp9, label %cond_false385, label %bb279 |
| 23 | |
| 24 | bb279: ; preds = %cond_next54 |
| 25 | ret void |
| 26 | |
| 27 | cond_false385: ; preds = %cond_next54 |
| 28 | %tmp388 = seteq uint 0, 0 ; <bool> [#uses=1] |
| 29 | br bool %tmp388, label %cond_next463, label %cond_true389 |
| 30 | |
| 31 | cond_true389: ; preds = %cond_false385 |
| 32 | ret void |
| 33 | |
| 34 | cond_next463: ; preds = %cond_false385 |
| 35 | %tmp1208107 = setgt sbyte* null, %stack ; <bool> [#uses=1] |
| 36 | br bool %tmp1208107, label %cond_true1209.preheader, label %bb1212 |
| 37 | |
| 38 | cond_true498: ; preds = %cond_true1209.preheader |
| 39 | ret void |
| 40 | |
| 41 | cond_true519: ; preds = %cond_true1209.preheader |
| 42 | %bothcond = or bool false, false ; <bool> [#uses=1] |
| 43 | br bool %bothcond, label %bb855, label %bb980 |
| 44 | |
| 45 | cond_false548: ; preds = %cond_true1209.preheader |
| 46 | ret void |
| 47 | |
| 48 | bb855: ; preds = %cond_true519 |
| 49 | %tmp859 = seteq int 0, 0 ; <bool> [#uses=1] |
| 50 | br bool %tmp859, label %cond_true860, label %cond_next905 |
| 51 | |
| 52 | cond_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 | |
| 58 | bb980: ; preds = %cond_true519 |
| 59 | ret void |
| 60 | |
| 61 | cond_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 | |
| 68 | bb1212: ; preds = %cond_next463 |
| 69 | ret void |
| 70 | } |
| 71 | |
| 72 | declare <4 x float> %llvm.ppc.altivec.vmaddfp(<4 x float>, <4 x float>, <4 x float>) |