[x86] add vector fadd with undef elts test; NFC

llvm-svn: 343944
This commit is contained in:
Sanjay Patel 2018-10-07 16:27:50 +00:00
parent 6c02c6a3a6
commit f956840dbe
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,16 @@ define <4 x float> @fadd_zero_4f32(<4 x float> %x) #0 {
ret <4 x float> %y
}
define <4 x float> @fadd_zero_4f32_undef(<4 x float> %x) {
; CHECK-LABEL: fadd_zero_4f32_undef:
; CHECK: # %bb.0:
; CHECK-NEXT: xorps %xmm1, %xmm1
; CHECK-NEXT: addps %xmm1, %xmm0
; CHECK-NEXT: retq
%y = fadd nsz <4 x float> %x, <float 0.0, float undef, float 0.0, float undef>
ret <4 x float> %y
}
; CHECK: float 3
define float @fadd_2const_f32(float %x) #0 {
; CHECK-LABEL: fadd_2const_f32: