summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-24 16:12:47 +0000
committerChris Lattner <sabre@nondot.org>2006-10-24 16:12:47 +0000
commitf054003ba7eb2124163165e7487c2329e887cd8f (patch)
treed8bd051fa5fd13f98adb9f487c6ffa32dbfb480e /llvm/lib/Target
parent1941bfa3616ab3ea8a1c96d02b84979a0dda6d68 (diff)
downloadbcm5719-llvm-f054003ba7eb2124163165e7487c2329e887cd8f.tar.gz
bcm5719-llvm-f054003ba7eb2124163165e7487c2329e887cd8f.zip
new bad case
llvm-svn: 31156
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/README.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index e77573e0075..1f67bee8892 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/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 ; <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
+}
+
+//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud