diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-01 19:39:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-01 19:39:45 +0000 |
commit | 537cf962d1133bcb7fdfee09eb6e00145db37274 (patch) | |
tree | f63b673389b2691c0fa7e9796960732b56b6b094 /test/Transforms | |
parent | 596721f0d7e59e5092ff89b2dd3ba4abeffc43e5 (diff) | |
download | external_llvm-537cf962d1133bcb7fdfee09eb6e00145db37274.zip external_llvm-537cf962d1133bcb7fdfee09eb6e00145db37274.tar.gz external_llvm-537cf962d1133bcb7fdfee09eb6e00145db37274.tar.bz2 |
new testcase, malloc should be promoted to [2 x double].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 7d6a3cb..ba0b304 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -199,3 +199,11 @@ bool %test31(ulong %A) { ret bool %D } + +void %test32(double** %tmp) { + %tmp8 = malloc [16 x sbyte] + %tmp8 = cast [16 x sbyte]* %tmp8 to double* + store double* %tmp8, double** %tmp + ret void +} + |