projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e14e50d
)
Modernize testcase
author
Chris Lattner
<sabre@nondot.org>
Tue, 18 Feb 2003 19:43:53 +0000
(19:43 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 18 Feb 2003 19:43:53 +0000
(19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5590
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/add.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/add.ll
b/test/Transforms/InstCombine/add.ll
index 71fa7e5c035530c5b76df5ee1fc0a6f94806dfef..70bb85a6c849c0e9514f1ef1b806accf5e25e9c1 100644
(file)
--- 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