[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/sub.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 10 17:24:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
sub.ll updated: 1.8 -> 1.9
---
Log message:
Add testcases for negated multiplies
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/sub.ll
diff -u llvm/test/Regression/Transforms/InstCombine/sub.ll:1.8 llvm/test/Regression/Transforms/InstCombine/sub.ll:1.9
--- llvm/test/Regression/Transforms/InstCombine/sub.ll:1.8 Tue Feb 18 13:55:31 2003
+++ llvm/test/Regression/Transforms/InstCombine/sub.ll Mon Mar 10 17:22:50 2003
@@ -59,3 +59,16 @@
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
+}
+
More information about the llvm-commits
mailing list