[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 13 16:26:40 PST 2005
Changes in directory llvm/test/Regression/Transforms/InstCombine:
getelementptr-setcc.ll updated: 1.1 -> 1.2
---
Log message:
More testcases
---
Diffs of the changes: (+15 -0)
Index: llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll
diff -u llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll:1.1 llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll:1.2
--- llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll:1.1 Thu Jan 13 17:26:14 2005
+++ llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll Thu Jan 13 18:26:25 2005
@@ -15,3 +15,18 @@
ret bool %C
}
+int %test3(int* %P, int %A, int %B) {
+ %tmp.4 = getelementptr int* %P, int %A ; <int*> [#uses=1]
+ %tmp.9 = getelementptr int* %P, int %B ; <int*> [#uses=1]
+ %tmp.10 = seteq int* %tmp.4, %tmp.9 ; <bool> [#uses=1]
+ %tmp.11 = cast bool %tmp.10 to int ; <int> [#uses=1]
+ ret int %tmp.11
+}
+
+int %test4(int* %P, int %A, int %B) {
+ %tmp.4 = getelementptr int* %P, int %A ; <int*> [#uses=1]
+ %tmp.6 = seteq int* %tmp.4, %P ; <bool> [#uses=1]
+ %tmp.7 = cast bool %tmp.6 to int ; <int> [#uses=1]
+ ret int %tmp.7
+}
+
More information about the llvm-commits
mailing list