diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-18 19:43:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-18 19:43:21 +0000 |
commit | e14e50d76b348117d29f511cf92f95b1e0148dbd (patch) | |
tree | f5bd8f99382913709a9d429dcb2fef8078cb4190 /test/Transforms/InstCombine/add.ll | |
parent | 5640f333313f63ac709e99e57ae455e49ccb8fc6 (diff) | |
download | llvm-e14e50d76b348117d29f511cf92f95b1e0148dbd.tar.gz llvm-e14e50d76b348117d29f511cf92f95b1e0148dbd.tar.bz2 llvm-e14e50d76b348117d29f511cf92f95b1e0148dbd.tar.xz |
Modernize testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/add.ll')
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 8247d05505..71fa7e5c03 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -10,33 +10,33 @@ implementation -int "test1"(int %A) +int %test1(int %A) begin %B = add int %A, 0 ret int %B end -int "test2"(int %A) +int %test2(int %A) begin %B = add int %A, 5 %C = add int %B, -5 ret int %C end -int "test3"(int %A) +int %test3(int %A) begin %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) { +int %test4(int %A, int %B) { %C = sub int 0, %A %D = add int %B, %C ; D = B + -A = B - A ret int %D } -int "test5"(int %A, int %B) { +int %test5(int %A, int %B) { %C = sub int 0, %A %D = add int %C, %B ; D = -A + B = B - A ret int %D |