diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-24 07:28:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-24 07:28:53 +0000 |
commit | 6edb7e8c20e5dae4694de90b19245af9aa73edf9 (patch) | |
tree | c919f1d1794656fa4f94813d36fae2f0b6d2876f | |
parent | 64001d0a138cfff860a50aaa42f215028ca68be6 (diff) |
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
-rw-r--r-- | test/Transforms/InstCombine/xor.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 772c480588..8b1e193e24 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -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 +} |