[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/add.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 19 13:48:46 PST 2005
Changes in directory llvm/test/Regression/Transforms/InstCombine:
add.ll updated: 1.24 -> 1.25
---
Log message:
Add some new tests
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/Transforms/InstCombine/add.ll
diff -u llvm/test/Regression/Transforms/InstCombine/add.ll:1.24 llvm/test/Regression/Transforms/InstCombine/add.ll:1.25
--- llvm/test/Regression/Transforms/InstCombine/add.ll:1.24 Sat Nov 13 13:45:37 2004
+++ llvm/test/Regression/Transforms/InstCombine/add.ll Wed Jan 19 15:48:31 2005
@@ -177,3 +177,17 @@
ret long %tmp.8
}
+int %test26(int %A, int %B) {
+ %C = add int %A, %B
+ %D = sub int %C, %B
+ ret int %D
+}
+
+int %test27(bool %C, int %X, int %Y) {
+ %A = add int %X, %Y
+ %B = add int %Y, 123
+ %C = select bool %C, int %A, int %B ;; Fold add through select.
+ %D = sub int %C, %Y
+ ret int %D
+}
+
More information about the llvm-commits
mailing list