summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_set-G.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-09 23:37:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-09 23:37:55 +0000
commit23573e5be606c52b60ab08ccba6a3125caee4590 (patch)
treef77141666eae64aa807ee62990aaed969e0faadf /test/CodeGen/X86/vec_set-G.ll
parent6b8583cbf1f8a3df5ae859d3da2ca690ff57f91c (diff)
downloadllvm-23573e5be606c52b60ab08ccba6a3125caee4590.tar.gz
llvm-23573e5be606c52b60ab08ccba6a3125caee4590.tar.bz2
llvm-23573e5be606c52b60ab08ccba6a3125caee4590.tar.xz
Add a pattern to do move the low element of a v4f32 and zero extend the rest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_set-G.ll')
-rw-r--r--test/CodeGen/X86/vec_set-G.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-G.ll b/test/CodeGen/X86/vec_set-G.ll
new file mode 100644
index 0000000000..f81907cb69
--- /dev/null
+++ b/test/CodeGen/X86/vec_set-G.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movss
+
+define fastcc void @t(<4 x float> %A) nounwind {
+ %tmp41896 = extractelement <4 x float> %A, i32 0 ; <float> [#uses=1]
+ %tmp14082 = insertelement <4 x float> < float 0.000000e+00, float undef, float undef, float undef >, float %tmp41896, i32 1 ; <<4 x float>> [#uses=1]
+ %tmp14083 = insertelement <4 x float> %tmp14082, float 0.000000e+00, i32 2 ; <<4 x float>> [#uses=1]
+ store <4 x float> %tmp14083, <4 x float>* null, align 16
+ ret void
+}