mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Testcase for PR913
llvm-svn: 30404
This commit is contained in:
parent
594d4d9483
commit
4655bf8ecc
@ -0,0 +1,14 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and
|
||||
; PR913
|
||||
|
||||
int %test(int* %tmp1) {
|
||||
%tmp = load int* %tmp1 ; <int> [#uses=1]
|
||||
%tmp = cast int %tmp to uint ; <uint> [#uses=1]
|
||||
%tmp2 = shr uint %tmp, ubyte 5 ; <uint> [#uses=1]
|
||||
%tmp2 = cast uint %tmp2 to int ; <int> [#uses=1]
|
||||
%tmp3 = and int %tmp2, 1 ; <int> [#uses=1]
|
||||
%tmp3 = cast int %tmp3 to bool ; <bool> [#uses=1]
|
||||
%tmp34 = cast bool %tmp3 to int ; <int> [#uses=1]
|
||||
ret int %tmp34
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user