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