mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Add some more cases we should combine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c326c92ca8
commit
7018f5c2d6
@ -35,3 +35,22 @@ int %test6(bool %C) {
|
|||||||
ret int %V
|
ret int %V
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool %test7(bool %C, bool %X) {
|
||||||
|
%R = select bool %C, bool true, bool %X ; R = or C, X
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
|
||||||
|
bool %test8(bool %C, bool %X) {
|
||||||
|
%R = select bool %C, bool %X, bool false ; R = and C, X
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
|
||||||
|
bool %test9(bool %C, bool %X) {
|
||||||
|
%R = select bool %C, bool false, bool %X ; R = and !C, X
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
|
||||||
|
bool %test10(bool %C, bool %X) {
|
||||||
|
%R = select bool %C, bool %X, bool true ; R = or !C, X
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user