Test that xor/select are folded into a select with inverted operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-04-24 07:28:53 +00:00
parent 64001d0a13
commit 6edb7e8c20

View File

@ -141,4 +141,8 @@ void %test20(uint %A, uint %B) { ; The "swap idiom"
ret void
}
int %test21(bool %C, int %A, int %B) {
%C2 = xor bool %C, true
%D = select bool %C2, int %A, int %B
ret int %D
}