forked from OSchip/llvm-project
New testcase, can be an srl instead of sra
llvm-svn: 30449
This commit is contained in:
parent
b3f24c91b0
commit
00a07af638
|
@ -0,0 +1,8 @@
|
|||
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'shr int'
|
||||
|
||||
int %test0(int %X, ubyte %A) {
|
||||
%Y = shr int %X, ubyte %A ; can be logical shift.
|
||||
%Z = and int %Y, 1
|
||||
ret int %Z
|
||||
}
|
Loading…
Reference in New Issue