New testcase, can be an srl instead of sra
llvm-svn: 30449
This commit is contained in:
parent
b3f24c91b0
commit
00a07af638
8
llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
Normal file
8
llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
Normal file
@ -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…
x
Reference in New Issue
Block a user