2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2008-06-30 10:43:01 +08:00
|
|
|
; PR2504
|
2013-03-26 05:04:16 +08:00
|
|
|
; XFAIL: hexagon
|
2008-06-30 10:43:01 +08:00
|
|
|
define <2 x double> @vector_select(<2 x double> %x, <2 x double> %y) nounwind {
|
|
|
|
%x.lo = extractelement <2 x double> %x, i32 0 ; <double> [#uses=1]
|
|
|
|
%x.lo.ge = fcmp oge double %x.lo, 0.000000e+00 ; <i1> [#uses=1]
|
|
|
|
%a.d = select i1 %x.lo.ge, <2 x double> %y, <2 x double> %x ; <<2 x double>> [#uses=1]
|
|
|
|
ret <2 x double> %a.d
|
|
|
|
}
|