summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/extractelement-from-arg.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-24 15:54:53 +0000
committerDan Gohman <gohman@apple.com>2007-09-24 15:54:53 +0000
commit60028189999f36372db29055b981699471d97951 (patch)
treeecb972c5bfa55bef7447680aafdf682c0dafe043 /llvm/test/CodeGen/X86/extractelement-from-arg.ll
parentf818ccd4635d38195b332c935cf124b88db96f6e (diff)
downloadbcm5719-llvm-60028189999f36372db29055b981699471d97951.tar.gz
bcm5719-llvm-60028189999f36372db29055b981699471d97951.zip
Use the correct result value type instead of using getValueType(0)
in ExpandEXTRACT_VECTOR_ELT and SplitVectorOp. This fixes an abort in the included testcase. llvm-svn: 42264
Diffstat (limited to 'llvm/test/CodeGen/X86/extractelement-from-arg.ll')
-rw-r--r--llvm/test/CodeGen/X86/extractelement-from-arg.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/extractelement-from-arg.ll b/llvm/test/CodeGen/X86/extractelement-from-arg.ll
new file mode 100644
index 00000000000..d28f016dbae
--- /dev/null
+++ b/llvm/test/CodeGen/X86/extractelement-from-arg.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as %s -o - | llc -march=x86-64
+
+define void @test(float* %R, <4 x float> %X) {
+ %tmp = extractelement <4 x float> %X, i32 3
+ store float %tmp, float* %R
+ ret void
+}
OpenPOWER on IntegriCloud