From: Sanjay Patel Date: Tue, 23 Apr 2019 16:31:30 +0000 (+0000) Subject: [x86] fix test checks for fdiv combine; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd11c290c407239744a018db45f93f7019ec8b17;p=llvm [x86] fix test checks for fdiv combine; NFC Must have picked up some transient code changes when originally generating this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359008 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/fdiv-combine-vec.ll b/test/CodeGen/X86/fdiv-combine-vec.ll index 6e0a3e44dd0..0d9f25657a9 100644 --- a/test/CodeGen/X86/fdiv-combine-vec.ll +++ b/test/CodeGen/X86/fdiv-combine-vec.ll @@ -75,11 +75,15 @@ define <4 x float> @splat_fdiv_v4f32(<4 x float> %x, float %y) { define <8 x float> @splat_fdiv_v8f32(<8 x float> %x, float %y) { ; SSE-LABEL: splat_fdiv_v8f32: ; SSE: # %bb.0: -; SSE-NEXT: movss {{.*#+}} xmm3 = mem[0],zero,zero,zero -; SSE-NEXT: divss %xmm2, %xmm3 -; SSE-NEXT: shufps {{.*#+}} xmm3 = xmm3[0,0,0,0] -; SSE-NEXT: mulps %xmm3, %xmm0 -; SSE-NEXT: mulps %xmm3, %xmm1 +; SSE-NEXT: shufps {{.*#+}} xmm2 = xmm2[0,0,0,0] +; SSE-NEXT: rcpps %xmm2, %xmm3 +; SSE-NEXT: mulps %xmm3, %xmm2 +; SSE-NEXT: movaps {{.*#+}} xmm4 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0] +; SSE-NEXT: subps %xmm2, %xmm4 +; SSE-NEXT: mulps %xmm3, %xmm4 +; SSE-NEXT: addps %xmm3, %xmm4 +; SSE-NEXT: mulps %xmm4, %xmm0 +; SSE-NEXT: mulps %xmm4, %xmm1 ; SSE-NEXT: retq ; ; AVX-LABEL: splat_fdiv_v8f32: