New testcases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-12 19:10:50 +00:00
parent d741bcfa16
commit c6da691cfe

View File

@ -100,3 +100,16 @@ bool %test15(uint %A, uint %B) {
ret bool %D
}
int %test16(int %A) {
%B = and int %A, 1
%C = and int %A, -2 ; -2 = ~1
%D = or int %B, %C ; %D = and int %B, -1 == %B
ret int %D
}
int %test17(int %A) {
%B = and int %A, 1
%C = and int %A, 4
%D = or int %B, %C ; %D = and int %B, 5
ret int %D
}