mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
New testcase, can be an srl instead of sra
llvm-svn: 30449
This commit is contained in:
parent
6ee34e89bc
commit
51d09aab4d
8
test/Regression/Transforms/InstCombine/shift-sra.ll
Normal file
8
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…
Reference in New Issue
Block a user