For PR950:
[oota-llvm.git] / test / Transforms / InstCombine / shift-sra.ll
1 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
2 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'lshr int'
3
4 int %test0(int %X, ubyte %A) {
5         %Y = shr int %X, ubyte %A  ; can be logical shift.
6         %Z = and int %Y, 1
7         ret int %Z
8 }