From c6da691cfea63d844ad31ee77d1bce4275686d9f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Aug 2003 19:10:50 +0000 Subject: [PATCH] New testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7781 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/or.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 43ed83d6188..4165c52a6a9 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -100,3 +100,16 @@ bool %test15(uint %A, uint %B) { ret bool %D } +int %test16(int %A) { + %B = and int %A, 1 + %C = and int %A, -2 ; -2 = ~1 + %D = or int %B, %C ; %D = and int %B, -1 == %B + ret int %D +} + +int %test17(int %A) { + %B = and int %A, 1 + %C = and int %A, 4 + %D = or int %B, %C ; %D = and int %B, 5 + ret int %D +} -- 2.34.1