Changes in directory llvm/lib/Target:
README.txt updated: 1.42 -> 1.43 --- Log message: new bad case --- Diffs of the changes: (+19 -0) README.txt | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+) Index: llvm/lib/Target/README.txt diff -u llvm/lib/Target/README.txt:1.42 llvm/lib/Target/README.txt:1.43 --- llvm/lib/Target/README.txt:1.42 Thu Sep 28 01:01:17 2006 +++ llvm/lib/Target/README.txt Tue Oct 24 11:12:47 2006 @@ -300,3 +300,22 @@ } //===---------------------------------------------------------------------===// + +-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 ; <float*> [#uses=1] + %tmp = load float* %tmp ; <float> [#uses=1] + %tmp3 = mul float %tmp, 2.000000e+00 ; <float> [#uses=1] + store float %tmp3, float* %P + ret void +} + +//===---------------------------------------------------------------------===// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits