diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 17:56:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 17:56:34 +0000 |
commit | 2b8e478b5d31f5fb5bf9bb5b9cf8ebea6350ffce (patch) | |
tree | 1aa9dd3eff40c8ecc37cd2538b412bc0abe33ccd | |
parent | 00b1a7e23e7e0804be5c1195d0cdef9974043049 (diff) |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7261 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/and.ll | 7 | ||||
-rw-r--r-- | test/Transforms/InstCombine/or.ll | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index 23a20fd46f..e0c4d180e1 100644 --- a/test/Transforms/InstCombine/and.ll +++ b/test/Transforms/InstCombine/and.ll @@ -58,3 +58,10 @@ bool %test9(uint %A) { %C = cast uint %B to bool ret bool %C } + +uint %test10(uint %A) { + %B = and uint %A, 12 + %C = xor uint %B, 15 + %D = and uint %C, 1 + ret uint %D +} diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index e89009547b..0ffc8e1870 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -117,3 +117,15 @@ bool %test19(ubyte %A) { %C = seteq ubyte %B, 34 ret bool %C } + + +bool %test20(int %A) { + %B = xor int %A, -1 + %C = and int %B, 4 + %D = setne int %C, 0 + %E = and int %B, 123 ; Make the usecount of B = 2 + %F = cast int %E to bool + %G = and bool %D, %F + ret bool %G +} + |