diff options
-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 +} |