blob: f614db00da48e8f487df911235743fb1bc04b8f5 [file] [log] [blame]
Eric Christopher824f42f2015-05-12 01:26:05 +00001; RUN: llc < %s
Duncan Sandsd21581e2009-03-29 13:51:06 +00002; PR3899
3
Dan Gohmanfb419362010-01-05 17:55:26 +00004@m = external global <2 x double>
Duncan Sandsd21581e2009-03-29 13:51:06 +00005
Eric Christopher824f42f2015-05-12 01:26:05 +00006define double @vector_ex() nounwind #0 {
David Blaikiea79ac142015-02-27 21:17:42 +00007 %v = load <2 x double>, <2 x double>* @m
Duncan Sandsd21581e2009-03-29 13:51:06 +00008 %x = extractelement <2 x double> %v, i32 1
9 ret double %x
10}
Eric Christopher824f42f2015-05-12 01:26:05 +000011
12; Soft-float attribute so that targets that pay attention to soft float will
13; make floating point types illegal and we'll exercise the legalizer code.
14attributes #0 = { "use-soft-float" = "true" }