[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 13 15:26:29 PST 2005
Changes in directory llvm/test/Regression/Transforms/InstCombine:
getelementptr-setcc.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll:1.1
*** /dev/null Thu Jan 13 17:26:24 2005
--- llvm/test/Regression/Transforms/InstCombine/getelementptr-setcc.ll Thu Jan 13 17:26:14 2005
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep getelementptr
+
+ bool %test1(short* %P, int %I, int %J) {
+ %X = getelementptr short* %P, int %I
+ %Y = getelementptr short* %P, int %J
+
+ %C = setlt short* %X, %Y
+ ret bool %C
+ }
+
+ bool %test2(short* %P, int %I) {
+ %X = getelementptr short* %P, int %I
+
+ %C = setlt short* %X, %P
+ ret bool %C
+ }
+
More information about the llvm-commits
mailing list