aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll')
-rw-r--r--test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll b/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
new file mode 100644
index 0000000000..45b561afff
--- /dev/null
+++ b/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -soft-float
+; PR3899
+
+@m = external global <2 x double>
+
+define double @vector_ex() nounwind {
+ %v = load <2 x double>* @m
+ %x = extractelement <2 x double> %v, i32 1
+ ret double %x
+}