From: Chris Lattner Date: Tue, 24 Oct 2006 16:12:47 +0000 (+0000) Subject: new bad case X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cf10391a721438d309de6c02ef406a46e9333d72;p=oota-llvm.git new bad case git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/README.txt b/lib/Target/README.txt index e77573e0075..1f67bee8892 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -300,3 +300,22 @@ unsigned short read_16_be(const unsigned char *adr) { } //===---------------------------------------------------------------------===// + +-scalarrepl should promote this to be a vector scalar. + + %struct..0anon = type { <4 x float> } +implementation ; Functions: +void %test1(<4 x float> %V, float* %P) { +entry: + %u = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=2] + %tmp = getelementptr %struct..0anon* %u, int 0, uint 0 ; <<4 x float>*> [#uses=1] + store <4 x float> %V, <4 x float>* %tmp + %tmp1 = cast %struct..0anon* %u to [4 x float]* ; <[4 x float]*> [#uses=1] + %tmp = getelementptr [4 x float]* %tmp1, int 0, int 1 ; [#uses=1] + %tmp = load float* %tmp ; [#uses=1] + %tmp3 = mul float %tmp, 2.000000e+00 ; [#uses=1] + store float %tmp3, float* %P + ret void +} + +//===---------------------------------------------------------------------===//