1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
2 ; RUN: grep {sh\[lr\]d} | wc -l | grep 5
4 long %test1(long %X, ubyte %C) {
5 %Y = shl long %X, ubyte %C
8 long %test2(long %X, ubyte %C) {
9 %Y = shr long %X, ubyte %C
12 ulong %test3(ulong %X, ubyte %C) {
13 %Y = shr ulong %X, ubyte %C
17 uint %test4(uint %A, uint %B, ubyte %C) {
18 %X = shl uint %A, ubyte %C
19 %Cv = sub ubyte 32, %C
20 %Y = shr uint %B, ubyte %Cv
25 ushort %test5(ushort %A, ushort %B, ubyte %C) {
26 %X = shl ushort %A, ubyte %C
27 %Cv = sub ubyte 16, %C
28 %Y = shr ushort %B, ubyte %Cv