diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 21:36:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 21:36:01 +0000 |
commit | ae623cb3032d841ce6f07fd5247bf13ce81b71a9 (patch) | |
tree | 475b6760954a993ec271159acf4382f389b9f972 | |
parent | c2a2e73c7f61f20324b8d497b8f5a52ef508169f (diff) |
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7281 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/xor.ll | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 3dc827395e..0273768f56 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -48,8 +48,8 @@ int %test7(int %A, int %B) { %A1 = and int %A, 7 %B1 = and int %B, 128 - %OROK = xor int %A1, %B1 - ret int %OROK + %C1 = xor int %A1, %B1 + ret int %C1 } ubyte %test8(bool %c) { @@ -66,3 +66,15 @@ bool %test9(ubyte %A) { %C = seteq ubyte %B, 34 ret bool %C } + +ubyte %test10(ubyte %A) { + %B = and ubyte %A, 3 + %C = xor ubyte %B, 4 ; transform into an OR + ret ubyte %C +} + +ubyte %test11(ubyte %A) { + %B = or ubyte %A, 12 + %C = xor ubyte %B, 4 ; transform into an AND + ret ubyte %C +} |