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:
a27231a
)
Add testcases for negated multiplies
author
Chris Lattner
<sabre@nondot.org>
Mon, 10 Mar 2003 23:22:50 +0000
(23:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 10 Mar 2003 23:22:50 +0000
(23:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5739
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/sub.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/sub.ll
b/test/Transforms/InstCombine/sub.ll
index 0dd2b7d930c42a156ff9a33e24c7e09aa8325875..184886c9be2beba93d9a39993803afbd754df45d 100644
(file)
--- a/
test/Transforms/InstCombine/sub.ll
+++ b/
test/Transforms/InstCombine/sub.ll
@@
-59,3
+59,16
@@
int %test9(int %A) {
ret int %C
}
+int %test10(int %A, int %B) { ; -A*-B == A*B
+ %C = sub int 0, %A
+ %D = sub int 0, %B
+ %E = mul int %C, %D
+ ret int %E
+}
+
+int %test10(int %A) { ; -A *c1 == A * -c1
+ %C = sub int 0, %A
+ %E = mul int %C, 7
+ ret int %E
+}
+