[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Jun 21 18:00:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
getelementptr.ll updated: 1.8 -> 1.9
---
Log message:
Add testcase for reason that typesafety of power is being broken
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll
diff -u llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.8 llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.9
--- llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.8 Wed Mar 5 16:32:48 2003
+++ llvm/test/Regression/Transforms/InstCombine/getelementptr.ll Sat Jun 21 17:59:39 2003
@@ -48,3 +48,9 @@
%B = getelementptr int* %A, long %D
ret int* %B
}
+
+sbyte* %foo8([10 x int]* %X) {
+ %A = getelementptr [10 x int]* %X, long 0, long 0 ;; Fold into the cast.
+ %B = cast int* %A to sbyte*
+ ret sbyte * %B
+}
More information about the llvm-commits
mailing list