diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-18 19:43:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-18 19:43:53 +0000 |
commit | b19fa8d3d6b3623cc14872c9ac5aa23da5c81c60 (patch) | |
tree | 0202b81e91726f920e1272bc298d27cb936573d6 | |
parent | e14e50d76b348117d29f511cf92f95b1e0148dbd (diff) |
Modernize testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5590 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 71fa7e5c03..70bb85a6c8 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -10,25 +10,22 @@ implementation -int %test1(int %A) -begin +int %test1(int %A) { %B = add int %A, 0 ret int %B -end +} -int %test2(int %A) -begin +int %test2(int %A) { %B = add int %A, 5 %C = add int %B, -5 ret int %C -end +} -int %test3(int %A) -begin +int %test3(int %A) { %B = add int %A, 5 %C = sub int %B, 5 ;; This should get converted to an add ret int %C -end +} int %test4(int %A, int %B) { %C = sub int 0, %A |