From 42dbd3044c4c7031a95c5c9a25804cc05b0fcb3b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 9 Aug 2002 23:34:39 +0000 Subject: [PATCH] xor x, ALLONES should -> not x git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3285 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/or.ll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 1f85ea2c49c..18881a23175 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -48,6 +48,11 @@ int "test8"(int %A) { ret int %B } +int %testXOR9(int %A) { + %B = xor int %A, -1 + ret int %B +} + bool "test9"(bool %A) { %B = or bool %A, %A ret bool %B @@ -58,5 +63,8 @@ int "test10"(int %A) { ret int %B } - +bool %test11(bool %A) { + %B = xor bool %A, true + ret bool %B +}