diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-19 21:48:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-19 21:48:31 +0000 |
| commit | 2547f05be8ee90312febd145d35e6a9d8962676d (patch) | |
| tree | 3e10e56bed340b0f0fd3580b83a8564db0529e5f | |
| parent | f840289291fe65c9c9ed06f80e329f124f291ca7 (diff) | |
| download | bcm5719-llvm-2547f05be8ee90312febd145d35e6a9d8962676d.tar.gz bcm5719-llvm-2547f05be8ee90312febd145d35e6a9d8962676d.zip | |
Add some new tests
llvm-svn: 19705
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/add.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll index 8868929ff64..c9715635ea4 100644 --- a/llvm/test/Regression/Transforms/InstCombine/add.ll +++ b/llvm/test/Regression/Transforms/InstCombine/add.ll @@ -177,3 +177,17 @@ long %test25(long %Y) { ret long %tmp.8 } +int %test26(int %A, int %B) { + %C = add int %A, %B + %D = sub int %C, %B + ret int %D +} + +int %test27(bool %C, int %X, int %Y) { + %A = add int %X, %Y + %B = add int %Y, 123 + %C = select bool %C, int %A, int %B ;; Fold add through select. + %D = sub int %C, %Y + ret int %D +} + |

