2015-05-12 03:26:05 +02:00
|
|
|
; RUN: llc < %s
|
2009-03-29 15:51:06 +02:00
|
|
|
; PR3899
|
|
|
|
|
2010-01-05 18:55:26 +01:00
|
|
|
@m = external global <2 x double>
|
2009-03-29 15:51:06 +02:00
|
|
|
|
2015-05-12 03:26:05 +02:00
|
|
|
define double @vector_ex() nounwind #0 {
|
2015-02-27 22:17:42 +01:00
|
|
|
%v = load <2 x double>, <2 x double>* @m
|
2009-03-29 15:51:06 +02:00
|
|
|
%x = extractelement <2 x double> %v, i32 1
|
|
|
|
ret double %x
|
|
|
|
}
|
2015-05-12 03:26:05 +02:00
|
|
|
|
|
|
|
; Soft-float attribute so that targets that pay attention to soft float will
|
|
|
|
; make floating point types illegal and we'll exercise the legalizer code.
|
|
|
|
attributes #0 = { "use-soft-float" = "true" }
|