Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / X86 / 2006-04-04-CrossBlockCrash.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah 
2
3 target endian = little
4 target pointersize = 32
5 target triple = "i686-apple-darwin8.6.1"
6         %struct.GLTColor4 = type { float, float, float, float }
7         %struct.GLTCoord3 = type { float, float, float }
8         %struct.__GLIContextRec = type { { %struct.anon, { [24 x [16 x float]], [24 x [16 x float]] }, %struct.GLTColor4, { float, float, float, float, %struct.GLTCoord3, float } }, { float, float, float, float, float, float, float, float, [4 x uint], [4 x uint], [4 x uint] } }
9         %struct.__GLvertex = type { %struct.GLTColor4, %struct.GLTColor4, %struct.GLTColor4, %struct.GLTColor4, %struct.GLTColor4, %struct.GLTCoord3, float, %struct.GLTColor4, float, float, float, ubyte, ubyte, ubyte, ubyte, [4 x float], [2 x sbyte*], uint, uint, [16 x %struct.GLTColor4] }
10         %struct.anon = type { float, float, float, float, float, float, float, float }
11
12 implementation   ; Functions:
13
14 declare <4 x float> %llvm.x86.sse.cmp.ps(<4 x float>, <4 x float>, sbyte)
15
16 declare <4 x int> %llvm.x86.sse2.packssdw.128(<4 x int>, <4 x int>)
17
18 declare int %llvm.x86.sse2.pmovmskb.128(<16 x sbyte>)
19
20 void %gleLLVMVecInterpolateClip() {
21 entry:
22         br bool false, label %cond_false, label %cond_false183
23
24 cond_false:             ; preds = %entry
25         br bool false, label %cond_false183, label %cond_true69
26
27 cond_true69:            ; preds = %cond_false
28         ret void
29
30 cond_false183:          ; preds = %cond_false, %entry
31         %vuizmsk.0.1 = phi <4 x int> [ < int -1, int -1, int -1, int 0 >, %entry ], [ < int -1, int 0, int 0, int 0 >, %cond_false ]            ; <<4 x int>> [#uses=2]
32         %tmp192 = extractelement <4 x int> %vuizmsk.0.1, uint 2         ; <int> [#uses=1]
33         %tmp193 = extractelement <4 x int> %vuizmsk.0.1, uint 3         ; <int> [#uses=2]
34         %tmp195 = insertelement <4 x int> zeroinitializer, int %tmp192, uint 1          ; <<4 x int>> [#uses=1]
35         %tmp196 = insertelement <4 x int> %tmp195, int %tmp193, uint 2          ; <<4 x int>> [#uses=1]
36         %tmp197 = insertelement <4 x int> %tmp196, int %tmp193, uint 3          ; <<4 x int>> [#uses=1]
37         %tmp336 = and <4 x int> zeroinitializer, %tmp197                ; <<4 x int>> [#uses=1]
38         %tmp337 = cast <4 x int> %tmp336 to <4 x float>         ; <<4 x float>> [#uses=1]
39         %tmp378 = tail call <4 x float> %llvm.x86.sse.cmp.ps( <4 x float> %tmp337, <4 x float> zeroinitializer, sbyte 1 )               ; <<4 x float>> [#uses=1]
40         %tmp379 = cast <4 x float> %tmp378 to <4 x int>         ; <<4 x int>> [#uses=1]
41         %tmp388 = tail call <4 x int> %llvm.x86.sse2.packssdw.128( <4 x int> zeroinitializer, <4 x int> %tmp379 )               ; <<4 x int>> [#uses=1]
42         %tmp392 = cast <4 x int> %tmp388 to <8 x short>         ; <<8 x short>> [#uses=1]
43         %tmp399 = extractelement <8 x short> %tmp392, uint 7            ; <short> [#uses=1]
44         %tmp423 = insertelement <8 x short> zeroinitializer, short %tmp399, uint 7              ; <<8 x short>> [#uses=1]
45         %tmp427 = cast <8 x short> %tmp423 to <16 x sbyte>              ; <<16 x sbyte>> [#uses=1]
46         %tmp428 = tail call int %llvm.x86.sse2.pmovmskb.128( <16 x sbyte> %tmp427 )             ; <int> [#uses=1]
47         %tmp432 = cast int %tmp428 to sbyte             ; <sbyte> [#uses=1]
48         %tmp = and sbyte %tmp432, 42            ; <sbyte> [#uses=1]
49         %tmp436 = cast sbyte %tmp to ubyte              ; <ubyte> [#uses=1]
50         %tmp446 = cast ubyte %tmp436 to uint            ; <uint> [#uses=1]
51         %tmp447 = shl uint %tmp446, ubyte 24            ; <uint> [#uses=1]
52         %tmp449 = or uint 0, %tmp447            ; <uint> [#uses=1]
53         store uint %tmp449, uint* null
54         ret void
55 }