diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-02 15:11:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-02 15:11:09 +0000 |
commit | ad5727d173bb44334476478038f77c86a74045d7 (patch) | |
tree | e8c53f7936418fab3c335e9b3b0da5ce7531a9aa | |
parent | eed462b6857e596d327886acab4ad7e22db953ce (diff) |
Add new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8816 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 7dcb2aef28..70d3e32033 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -105,3 +105,14 @@ ubyte %test16(ubyte %A) { ret ubyte %C } +int %test17(int %A) { + %B = xor int %A, -1 + %C = add int %B, 1 ; == sub int 0, %A + ret int %C +} + +ubyte %test18(ubyte %A) { + %B = xor ubyte %A, 255 + %C = add ubyte %B, 17 ; == sub ubyte 16, %A + ret ubyte %C +} |