summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-12-20 01:26:35 +0000
committerCraig Topper <craig.topper@intel.com>2017-12-20 01:26:35 +0000
commit171fb157862de0da79fd168196dc1f96a827bf10 (patch)
tree3babdcad9504b2ea5f99ea0dd61046cf0a5ddbc3
parentfbd9678d2fc9faa7dc58921ba5c7a1b40b74cd22 (diff)
downloadbcm5719-llvm-171fb157862de0da79fd168196dc1f96a827bf10.tar.gz
bcm5719-llvm-171fb157862de0da79fd168196dc1f96a827bf10.zip
[X86] Fix probable typo in fma fneg test.
llvm-svn: 321136
-rw-r--r--llvm/test/CodeGen/X86/fma-fneg-combine.ll22
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/test/CodeGen/X86/fma-fneg-combine.ll b/llvm/test/CodeGen/X86/fma-fneg-combine.ll
index 8dacf2dcf97..fdd9fd34479 100644
--- a/llvm/test/CodeGen/X86/fma-fneg-combine.ll
+++ b/llvm/test/CodeGen/X86/fma-fneg-combine.ll
@@ -140,21 +140,23 @@ declare <2 x double> @llvm.x86.avx512.mask.vfmadd.sd(<2 x double> %a, <2 x doubl
define <4 x float> @test11(<4 x float> %a, <4 x float> %b, <4 x float> %c, i8 zeroext %mask) local_unnamed_addr #0 {
; SKX-LABEL: test11:
; SKX: # %bb.0: # %entry
-; SKX-NEXT: vxorps {{.*}}(%rip){1to4}, %xmm2, %xmm0
+; SKX-NEXT: vxorps {{.*}}(%rip){1to4}, %xmm2, %xmm2
; SKX-NEXT: kmovd %edi, %k1
-; SKX-NEXT: vfmadd231ss %xmm1, %xmm1, %xmm0 {%k1}
+; SKX-NEXT: vfmadd231ss %xmm1, %xmm0, %xmm2 {%k1}
+; SKX-NEXT: vmovaps %xmm2, %xmm0
; SKX-NEXT: retq
;
; KNL-LABEL: test11:
; KNL: # %bb.0: # %entry
-; KNL-NEXT: vbroadcastss {{.*#+}} xmm0 = [-0,-0,-0,-0]
-; KNL-NEXT: vxorps %xmm0, %xmm2, %xmm0
+; KNL-NEXT: vbroadcastss {{.*#+}} xmm3 = [-0,-0,-0,-0]
+; KNL-NEXT: vxorps %xmm3, %xmm2, %xmm2
; KNL-NEXT: kmovw %edi, %k1
-; KNL-NEXT: vfmadd231ss %xmm1, %xmm1, %xmm0 {%k1}
+; KNL-NEXT: vfmadd231ss %xmm1, %xmm0, %xmm2 {%k1}
+; KNL-NEXT: vmovaps %xmm2, %xmm0
; KNL-NEXT: retq
entry:
%sub.i = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, %c
- %0 = tail call <4 x float> @llvm.x86.avx512.mask3.vfmadd.ss(<4 x float> %b, <4 x float> %b, <4 x float> %sub.i, i8 %mask, i32 4) #10
+ %0 = tail call <4 x float> @llvm.x86.avx512.mask3.vfmadd.ss(<4 x float> %a, <4 x float> %b, <4 x float> %sub.i, i8 %mask, i32 4) #10
ret <4 x float> %0
}
@@ -164,19 +166,17 @@ define <4 x float> @test11b(<4 x float> %a, <4 x float> %b, <4 x float> %c, i8 z
; SKX-LABEL: test11b:
; SKX: # %bb.0: # %entry
; SKX-NEXT: kmovd %edi, %k1
-; SKX-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm1 {%k1}
-; SKX-NEXT: vmovaps %xmm1, %xmm0
+; SKX-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 {%k1}
; SKX-NEXT: retq
;
; KNL-LABEL: test11b:
; KNL: # %bb.0: # %entry
; KNL-NEXT: kmovw %edi, %k1
-; KNL-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm1 {%k1}
-; KNL-NEXT: vmovaps %xmm1, %xmm0
+; KNL-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 {%k1}
; KNL-NEXT: retq
entry:
%sub.i = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, %c
- %0 = tail call <4 x float> @llvm.x86.avx512.mask.vfmadd.ss(<4 x float> %b, <4 x float> %b, <4 x float> %sub.i, i8 %mask, i32 4) #10
+ %0 = tail call <4 x float> @llvm.x86.avx512.mask.vfmadd.ss(<4 x float> %a, <4 x float> %b, <4 x float> %sub.i, i8 %mask, i32 4) #10
ret <4 x float> %0
}
OpenPOWER on IntegriCloud