1 ; Coalescing from R32 to a subset R32_. Once another register coalescer bug is
2 ; fixed, the movb should go away as well.
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | \
7 %B = external global uint
8 %C = external global ushort*
11 %A = cast uint %A to ubyte
13 %tmp3 = and ubyte %A, 16
14 %tmp4 = shl uint %tmp2, ubyte %tmp3
15 store uint %tmp4, uint* %B
16 %tmp6 = shr uint %A, ubyte 3
17 %tmp = load ushort** %C
18 %tmp8 = cast ushort* %tmp to uint
19 %tmp9 = add uint %tmp8, %tmp6
20 %tmp9 = cast uint %tmp9 to ushort*
21 store ushort* %tmp9, ushort** %C