Evan Cheng | 080e187 | 2006-08-07 23:58:47 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 |
| 2 | |
| 3 | fastcc int %test(%struct.foo* %v, %struct.foo* %vi) { |
| 4 | br bool false, label %ilog2.exit, label %cond_true.i |
| 5 | |
| 6 | cond_true.i: ; preds = %entry |
| 7 | ret int 0 |
| 8 | |
| 9 | ilog2.exit: ; preds = %entry |
| 10 | %tmp24.i = load int* null ; <int> [#uses=1] |
| 11 | %tmp13.i12.i = tail call double %ldexp( double 0.000000e+00, int 0 ) ; <double> [#uses=1] |
| 12 | %tmp13.i13.i = cast double %tmp13.i12.i to float ; <float> [#uses=1] |
| 13 | %tmp11.i = load int* null ; <int> [#uses=1] |
| 14 | %tmp11.i = cast int %tmp11.i to uint ; <uint> [#uses=1] |
| 15 | %n.i = cast int %tmp24.i to uint ; <uint> [#uses=1] |
| 16 | %tmp13.i7 = mul uint %tmp11.i, %n.i ; <uint> [#uses=1] |
| 17 | %tmp.i8 = tail call sbyte* %calloc( uint %tmp13.i7, uint 4 ) ; <sbyte*> [#uses=0] |
| 18 | br bool false, label %bb224.preheader.i, label %bb.i |
| 19 | |
| 20 | bb.i: ; preds = %ilog2.exit |
| 21 | ret int 0 |
| 22 | |
| 23 | bb224.preheader.i: ; preds = %ilog2.exit |
| 24 | %tmp165.i = cast float %tmp13.i13.i to double ; <double> [#uses=0] |
| 25 | ret int 0 |
| 26 | } |
| 27 | |
| 28 | declare sbyte* %calloc(uint, uint) |
| 29 | |
| 30 | declare double %ldexp(double, int) |