[llvm] r343944 - [x86] add vector fadd with undef elts test; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 7 09:27:50 PDT 2018
Author: spatel
Date: Sun Oct 7 09:27:50 2018
New Revision: 343944
URL: http://llvm.org/viewvc/llvm-project?rev=343944&view=rev
Log:
[x86] add vector fadd with undef elts test; NFC
Modified:
llvm/trunk/test/CodeGen/X86/fadd-combines.ll
Modified: llvm/trunk/test/CodeGen/X86/fadd-combines.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fadd-combines.ll?rev=343944&r1=343943&r2=343944&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fadd-combines.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fadd-combines.ll Sun Oct 7 09:27:50 2018
@@ -17,6 +17,16 @@ define <4 x float> @fadd_zero_4f32(<4 x
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:
More information about the llvm-commits
mailing list