From: Chris Lattner Date: Sun, 1 Oct 2006 19:39:45 +0000 (+0000) Subject: new testcase, malloc should be promoted to [2 x double]. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=537cf962d1133bcb7fdfee09eb6e00145db37274;p=oota-llvm.git 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 --- diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 7d6a3cb93d1..ba0b30452c4 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 +} +