llvm.org GIT mirror llvm / 080e187
New test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29558 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
1
2 fastcc int %test(%struct.foo* %v, %struct.foo* %vi) {
3 br bool false, label %ilog2.exit, label %cond_true.i
4
5 cond_true.i: ; preds = %entry
6 ret int 0
7
8 ilog2.exit: ; preds = %entry
9 %tmp24.i = load int* null ; [#uses=1]
10 %tmp13.i12.i = tail call double %ldexp( double 0.000000e+00, int 0 ) ; [#uses=1]
11 %tmp13.i13.i = cast double %tmp13.i12.i to float ; [#uses=1]
12 %tmp11.i = load int* null ; [#uses=1]
13 %tmp11.i = cast int %tmp11.i to uint ; [#uses=1]
14 %n.i = cast int %tmp24.i to uint ; [#uses=1]
15 %tmp13.i7 = mul uint %tmp11.i, %n.i ; [#uses=1]
16 %tmp.i8 = tail call sbyte* %calloc( uint %tmp13.i7, uint 4 ) ; [#uses=0]
17 br bool false, label %bb224.preheader.i, label %bb.i
18
19 bb.i: ; preds = %ilog2.exit
20 ret int 0
21
22 bb224.preheader.i: ; preds = %ilog2.exit
23 %tmp165.i = cast float %tmp13.i13.i to double ; [#uses=0]
24 ret int 0
25 }
26
27 declare sbyte* %calloc(uint, uint)
28
29 declare double %ldexp(double, int)