[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Jul 19 18:47:59 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
GEPIdxCanon.ll added (r1.1)
---
Log message:
New testcase that instcombine should help out with.
---
Diffs of the changes: (+8 -0)
Index: llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll:1.1
*** /dev/null Mon Jul 19 20:47:59 2004
--- llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll Mon Jul 19 20:47:49 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | opt -instcombine -gcse -instcombine | llvm-dis | not grep getelementptr
+
+ bool %test(int* %A) {
+ %B = getelementptr int* %A, int 1
+ %C = getelementptr int* %A, uint 1
+ %V = seteq int* %B, %C
+ ret bool %V
+ }
More information about the llvm-commits
mailing list