summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-08-07-CycleInDAG.ll
blob: c66d553c11137e2cf9b48cc23279c2c165ff5d98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2

%struct.foo = type opaque

implementation

fastcc int %test(%struct.foo* %v, %struct.foo* %vi) {
	br bool false, label %ilog2.exit, label %cond_true.i

cond_true.i:		; preds = %entry
	ret int 0

ilog2.exit:		; preds = %entry
	%tmp24.i = load int* null		; <int> [#uses=1]
	%tmp13.i12.i = tail call double %ldexp( double 0.000000e+00, int 0 )		; <double> [#uses=1]
	%tmp13.i13.i = cast double %tmp13.i12.i to float		; <float> [#uses=1]
	%tmp11.s = load int* null		; <int> [#uses=1]
	%tmp11.i = cast int %tmp11.s to uint		; <uint> [#uses=1]
	%n.i = cast int %tmp24.i to uint		; <uint> [#uses=1]
	%tmp13.i7 = mul uint %tmp11.i, %n.i		; <uint> [#uses=1]
	%tmp.i8 = tail call sbyte* %calloc( uint %tmp13.i7, uint 4 )		; <sbyte*> [#uses=0]
	br bool false, label %bb224.preheader.i, label %bb.i

bb.i:		; preds = %ilog2.exit
	ret int 0

bb224.preheader.i:		; preds = %ilog2.exit
	%tmp165.i = cast float %tmp13.i13.i to double		; <double> [#uses=0]
	ret int 0
}

declare sbyte* %calloc(uint, uint)

declare double %ldexp(double, int)