aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/select-cc.ll
blob: 7510f701b147814588deb6284647e47c3cc09834 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llc < %s
; PR2504
; XFAIL: hexagon
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
}