1 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
2 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'lshr int' | wc -l | grep 2 &&
3 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ashr
5 int %test1(int %X, ubyte %A) {
6 %Y = shr int %X, ubyte %A ; can be logical shift.
11 int %test2(ubyte %tmp) {
12 %tmp3 = cast ubyte %tmp to int
13 %tmp4 = add int %tmp3, 7
14 %tmp5 = ashr int %tmp4, ubyte 3 ; lshr