diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-12 18:07:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-12 18:07:41 +0000 |
commit | 23405aa73d51252bb2277291aa9b910cf6fce387 (patch) | |
tree | 8d9293d16af3178b71d9726c20af1f9d19203d82 | |
parent | 403d43a1a9e94e732b29996ae6525694bd7b6eec (diff) |
These casts should turn into gep instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27618 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 53bc87ff6a..e50344019e 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -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 @@ int %test26(float %F) { %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 +} + |