diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-10-07 16:27:50 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-10-07 16:27:50 +0000 |
commit | f956840dbe41f3121ecceea24e0f1aa15cb0f5bb (patch) | |
tree | d76091575e1e419a9bedc9da767245584f972de5 | |
parent | 6c02c6a3a68811461ee39a0ff22420dbe6a3c7e0 (diff) | |
download | bcm5719-llvm-f956840dbe41f3121ecceea24e0f1aa15cb0f5bb.tar.gz bcm5719-llvm-f956840dbe41f3121ecceea24e0f1aa15cb0f5bb.zip |
[x86] add vector fadd with undef elts test; NFC
llvm-svn: 343944
-rw-r--r-- | llvm/test/CodeGen/X86/fadd-combines.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fadd-combines.ll b/llvm/test/CodeGen/X86/fadd-combines.ll index f9d899e44da..efd31d43265 100644 --- a/llvm/test/CodeGen/X86/fadd-combines.ll +++ b/llvm/test/CodeGen/X86/fadd-combines.ll @@ -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: |