forked from OSchip/llvm-project
[x86] add tests for extracted vector FP cmp; NFC
llvm-svn: 355727
This commit is contained in:
parent
d4c4f7440e
commit
43f098e719
|
@ -129,6 +129,31 @@ define double @frem_v4f64(<4 x double> %x, <4 x double> %y) nounwind {
|
|||
ret double %r
|
||||
}
|
||||
|
||||
define i1 @fcmp_v4f32(<4 x float> %x, <4 x float> %y) nounwind {
|
||||
; CHECK-LABEL: fcmp_v4f32:
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-NEXT: vcmpltps %xmm0, %xmm1, %xmm0
|
||||
; CHECK-NEXT: vpextrb $0, %xmm0, %eax
|
||||
; CHECK-NEXT: # kill: def $al killed $al killed $eax
|
||||
; CHECK-NEXT: retq
|
||||
%v = fcmp ogt <4 x float> %x, %y
|
||||
%r = extractelement <4 x i1> %v, i32 0
|
||||
ret i1 %r
|
||||
}
|
||||
|
||||
define i1 @fcmp_v4f64(<4 x double> %x, <4 x double> %y) nounwind {
|
||||
; CHECK-LABEL: fcmp_v4f64:
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-NEXT: vcmpnlepd %ymm1, %ymm0, %ymm0
|
||||
; CHECK-NEXT: vpextrb $0, %xmm0, %eax
|
||||
; CHECK-NEXT: # kill: def $al killed $al killed $eax
|
||||
; CHECK-NEXT: vzeroupper
|
||||
; CHECK-NEXT: retq
|
||||
%v = fcmp ugt <4 x double> %x, %y
|
||||
%r = extractelement <4 x i1> %v, i32 0
|
||||
ret i1 %r
|
||||
}
|
||||
|
||||
define float @fsqrt_v4f32(<4 x float> %x) nounwind {
|
||||
; CHECK-LABEL: fsqrt_v4f32:
|
||||
; CHECK: # %bb.0:
|
||||
|
|
Loading…
Reference in New Issue