1 ; RUN: llvm-upgrade < %s | llvm-as | \
2 ; RUN: llc -march=x86 -relocation-model=static | not grep {subl.*%esp}
4 %A = external global ushort*
5 %B = external global uint
6 %C = external global uint
9 %tmp = load ushort** %A
10 %tmp1 = getelementptr ushort* %tmp, int 1
11 %tmp = load ushort* %tmp1
12 %tmp3 = cast ushort %tmp to uint
14 %tmp4 = and uint %tmp, 16
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