diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-02 05:56:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-02 05:56:58 +0000 |
commit | fc424c39de129ec928a985ec1507067f1a1881b9 (patch) | |
tree | 1b122df1aa6142a426543a1fc557e2ce8ffe59f9 /test/Transforms/InstCombine/cast.ll | |
parent | f22d84389f0fc48c077bc1c7b42bb04a3dce990b (diff) | |
download | llvm-fc424c39de129ec928a985ec1507067f1a1881b9.tar.gz llvm-fc424c39de129ec928a985ec1507067f1a1881b9.tar.bz2 llvm-fc424c39de129ec928a985ec1507067f1a1881b9.tar.xz |
Add test for instcombine transmogrifying allocation instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 8ee4cc7433..11d95ca7e5 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -73,3 +73,9 @@ void %test11(int* %P) { call void(int, ...)* %varargs(int 5, short* %c) ret void } + +int* %test12() { + %p = malloc [4 x sbyte] + %c = cast [4 x sbyte]* %p to int* + ret int* %c +} |