Changes in directory llvm/test/Regression/Transforms/InstCombine:
cast.ll updated: 1.26 -> 1.27 --- Log message: These casts should turn into gep instructions --- Diffs of the changes: (+12 -1) cast.ll | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletion(-) Index: llvm/test/Regression/Transforms/InstCombine/cast.ll diff -u llvm/test/Regression/Transforms/InstCombine/cast.ll:1.26 llvm/test/Regression/Transforms/InstCombine/cast.ll:1.27 --- llvm/test/Regression/Transforms/InstCombine/cast.ll:1.26 Thu Jan 19 01:39:20 2006 +++ llvm/test/Regression/Transforms/InstCombine/cast.ll Wed Apr 12 13:07:41 2006 @@ -1,5 +1,5 @@ ; Tests to make sure elimination of casts is working correctly - +; RUN: llvm-as < %s | opt -instcombine -disable-output && ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep '%c' | not grep cast %inbuf = external global [32832 x ubyte] @@ -166,3 +166,14 @@ %D = cast double %c to int ret int %D } + +[4 x float]* %test27([9 x [4 x float]]* %A) { + %c = cast [9 x [4 x float]]* %A to [4 x float]* + ret [4 x float]* %c +} + +float* %test28([4 x float]* %A) { + %c = cast [4 x float]* %A to float* + ret float* %c +} + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits