[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr_cast.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 27 09:55:35 PST 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
getelementptr_cast.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+9 -0)
Index: llvm/test/Regression/Transforms/InstCombine/getelementptr_cast.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/getelementptr_cast.ll:1.1
*** /dev/null Sat Nov 27 11:55:30 2004
--- llvm/test/Regression/Transforms/InstCombine/getelementptr_cast.ll Sat Nov 27 11:55:20 2004
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'getelementptr.*cast'
+ %G = external global [3 x sbyte]
+
+ implementation
+
+ ubyte *%foo(uint %Idx) {
+ %tmp = getelementptr ubyte* cast ([3 x sbyte]* %G to ubyte*), uint %Idx
+ ret ubyte* %tmp
+ }
More information about the llvm-commits
mailing list