summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_loadsingles.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/vec_loadsingles.ll')
-rw-r--r--test/CodeGen/X86/vec_loadsingles.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_loadsingles.ll b/test/CodeGen/X86/vec_loadsingles.ll
new file mode 100644
index 0000000000..67122763ec
--- /dev/null
+++ b/test/CodeGen/X86/vec_loadsingles.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movq
+
+define <4 x float> @a(<4 x float> %a, float* nocapture %p) nounwind readonly {
+entry:
+ %tmp1 = load float* %p
+ %vecins = insertelement <4 x float> undef, float %tmp1, i32 0
+ %add.ptr = getelementptr float* %p, i32 1
+ %tmp5 = load float* %add.ptr
+ %vecins7 = insertelement <4 x float> %vecins, float %tmp5, i32 1
+ ret <4 x float> %vecins7
+}
+