]> granicus.if.org Git - llvm/commitdiff
[x86] fix test checks for fdiv combine; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 23 Apr 2019 16:31:30 +0000 (16:31 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 23 Apr 2019 16:31:30 +0000 (16:31 +0000)
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

test/CodeGen/X86/fdiv-combine-vec.ll

index 6e0a3e44dd0c476c281b5dc2de661918a069aa38..0d9f25657a92515649479af82a1d913e06380e3e 100644 (file)
@@ -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: