For PR1319:
[oota-llvm.git] / test / CodeGen / X86 / 2006-05-08-InstrSched.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | \
2 ; RUN:   llc -march=x86 -relocation-model=static | not grep {subl.*%esp}
3
4 %A = external global ushort*
5 %B = external global uint
6 %C = external global uint
7
8 void %test() {
9         %tmp = load ushort** %A
10         %tmp1 = getelementptr ushort* %tmp, int 1
11         %tmp = load ushort* %tmp1
12         %tmp3 = cast ushort %tmp to uint
13         %tmp = load uint* %B
14         %tmp4 = and uint %tmp, 16
15         %tmp5 = load uint* %C
16         %tmp6 = cast uint %tmp4 to ubyte
17         %tmp7 = shl uint %tmp5, ubyte %tmp6
18         %tmp9 = xor ubyte %tmp6, 16
19         %tmp11 = shr uint %tmp3, ubyte %tmp9
20         %tmp12 = or uint %tmp11, %tmp7
21         store uint %tmp12, uint* %C
22         ret void
23 }