summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/extractelement-from-arg.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/extractelement-from-arg.ll')
-rw-r--r--test/CodeGen/X86/extractelement-from-arg.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/extractelement-from-arg.ll b/test/CodeGen/X86/extractelement-from-arg.ll
new file mode 100644
index 0000000000000..44704b6adb396
--- /dev/null
+++ b/test/CodeGen/X86/extractelement-from-arg.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as %s -o - | llc -march=x86-64 -mattr=+sse2
+
+define void @test(float* %R, <4 x float> %X) nounwind {
+ %tmp = extractelement <4 x float> %X, i32 3
+ store float %tmp, float* %R
+ ret void
+}