From e74955adc573fdc1777eae163169e343db01cf1b 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 llvm-svn: 3285 --- test/Regression/Transforms/InstCombine/or.ll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Regression/Transforms/InstCombine/or.ll b/test/Regression/Transforms/InstCombine/or.ll index 1f85ea2c49c..18881a23175 100644 --- a/test/Regression/Transforms/InstCombine/or.ll +++ b/test/Regression/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 +}