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

llvm-svn: 21494
This commit is contained in:
Chris Lattner 2005-04-24 07:28:53 +00:00
parent 2c7d177d25
commit b57d040464
1 changed files with 5 additions and 1 deletions

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
}