[llvm] r359008 - [x86] fix test checks for fdiv combine; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 09:31:30 PDT 2019
Author: spatel
Date: Tue Apr 23 09:31:30 2019
New Revision: 359008
URL: http://llvm.org/viewvc/llvm-project?rev=359008&view=rev
Log:
[x86] fix test checks for fdiv combine; NFC
Must have picked up some transient code changes when originally generating this.
Modified:
llvm/trunk/test/CodeGen/X86/fdiv-combine-vec.ll
Modified: llvm/trunk/test/CodeGen/X86/fdiv-combine-vec.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fdiv-combine-vec.ll?rev=359008&r1=359007&r2=359008&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fdiv-combine-vec.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fdiv-combine-vec.ll Tue Apr 23 09:31:30 2019
@@ -75,11 +75,15 @@ define <4 x float> @splat_fdiv_v4f32(<4
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:
More information about the llvm-commits
mailing list