[llvm] r363316 - Revert "[NFC][CodeGen] Add unary fneg tests to fmul-combines.ll fnabs.ll"

Cameron McInally via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 12:25:13 PDT 2019


Author: mcinally
Date: Thu Jun 13 12:25:12 2019
New Revision: 363316

URL: http://llvm.org/viewvc/llvm-project?rev=363316&view=rev
Log:
Revert "[NFC][CodeGen] Add unary fneg tests to fmul-combines.ll fnabs.ll"

This reverts commit 5c0114058126757ce21e546997121afffc8119cd.

Modified:
    llvm/trunk/test/CodeGen/X86/fmul-combines.ll
    llvm/trunk/test/CodeGen/X86/fnabs.ll

Modified: llvm/trunk/test/CodeGen/X86/fmul-combines.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fmul-combines.ll?rev=363316&r1=363315&r2=363316&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fmul-combines.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fmul-combines.ll Thu Jun 13 12:25:12 2019
@@ -251,39 +251,6 @@ define float @fmul_fneg_fneg_f32(float %
   ret float %mul
 }
 
-define float @fmul_unary_fneg_unary_fneg_f32(float %x, float %y) {
-; CHECK-LABEL: fmul_unary_fneg_unary_fneg_f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulss %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fneg float %x
-  %y.neg = fneg float %y
-  %mul = fmul float %x.neg, %y.neg
-  ret float %mul
-}
-
-define float @fmul_unary_fneg_fneg_f32(float %x, float %y) {
-; CHECK-LABEL: fmul_unary_fneg_fneg_f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulss %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fneg float %x
-  %y.neg = fsub float -0.0, %y
-  %mul = fmul float %x.neg, %y.neg
-  ret float %mul
-}
-
-define float @fmul_fneg_unary_fneg_f32(float %x, float %y) {
-; CHECK-LABEL: fmul_fneg_unary_fneg_f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulss %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fsub float -0.0, %x
-  %y.neg = fneg float %y
-  %mul = fmul float %x.neg, %y.neg
-  ret float %mul
-}
-
 define <4 x float> @fmul_fneg_fneg_v4f32(<4 x float> %x, <4 x float> %y) {
 ; CHECK-LABEL: fmul_fneg_fneg_v4f32:
 ; CHECK:       # %bb.0:
@@ -294,38 +261,5 @@ define <4 x float> @fmul_fneg_fneg_v4f32
   %mul = fmul <4 x float> %x.neg, %y.neg
   ret <4 x float> %mul
 }
-
-define <4 x float> @fmul_unary_fneg_unary_fneg_v4f32(<4 x float> %x, <4 x float> %y) {
-; CHECK-LABEL: fmul_unary_fneg_unary_fneg_v4f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulps %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fneg <4 x float> %x
-  %y.neg = fneg <4 x float> %y
-  %mul = fmul <4 x float> %x.neg, %y.neg
-  ret <4 x float> %mul
-}
-
-define <4 x float> @fmul_unary_fneg_fneg_v4f32(<4 x float> %x, <4 x float> %y) {
-; CHECK-LABEL: fmul_unary_fneg_fneg_v4f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulps %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fneg <4 x float> %x
-  %y.neg = fsub <4 x float> <float -0.0, float -0.0, float -0.0, float -0.0>, %y
-  %mul = fmul <4 x float> %x.neg, %y.neg
-  ret <4 x float> %mul
-}
-
-define <4 x float> @fmul_fneg_unary_fneg_v4f32(<4 x float> %x, <4 x float> %y) {
-; CHECK-LABEL: fmul_fneg_unary_fneg_v4f32:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    mulps %xmm1, %xmm0
-; CHECK-NEXT:    retq
-  %x.neg = fsub <4 x float> <float -0.0, float -0.0, float -0.0, float -0.0>, %x
-  %y.neg = fneg <4 x float> %y
-  %mul = fmul <4 x float> %x.neg, %y.neg
-  ret <4 x float> %mul
-}
 
 attributes #0 = { "less-precise-fpmad"="true" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "unsafe-fp-math"="true" }

Modified: llvm/trunk/test/CodeGen/X86/fnabs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fnabs.ll?rev=363316&r1=363315&r2=363316&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fnabs.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fnabs.ll Thu Jun 13 12:25:12 2019
@@ -14,15 +14,6 @@ define float @scalar_no_abs(float %a) {
   ret float %fsub
 }
 
-define float @scalar_no_abs_unary_fneg(float %a) {
-; CHECK-LABEL: scalar_no_abs_unary_fneg:
-; CHECK: vorps
-; CHECK-NEXT: retq
-  %fabs = tail call float @fabsf(float %a) #1
-  %fsub = fneg float %fabs
-  ret float %fsub
-}
-
 define float @scalar_uses_abs(float %a) {
 ; CHECK-LABEL: scalar_uses_abs:
 ; CHECK-DAG: vandps
@@ -35,18 +26,6 @@ define float @scalar_uses_abs(float %a)
   ret float %fmul
 }
 
-define float @scalar_uses_abs_unary_fneg(float %a) {
-; CHECK-LABEL: scalar_uses_abs_unary_fneg:
-; CHECK-DAG: vandps
-; CHECK-DAG: vorps
-; CHECK: vmulss
-; CHECK-NEXT: retq
-  %fabs = tail call float @fabsf(float %a) #1
-  %fsub = fneg float %fabs
-  %fmul = fmul float %fsub, %fabs
-  ret float %fmul
-}
-
 define <4 x float> @vector128_no_abs(<4 x float> %a) {
 ; CHECK-LABEL: vector128_no_abs:
 ; CHECK: vorps
@@ -56,15 +35,6 @@ define <4 x float> @vector128_no_abs(<4
   ret <4 x float> %fsub
 }
 
-define <4 x float> @vector128_no_abs_unary_fneg(<4 x float> %a) {
-; CHECK-LABEL: vector128_no_abs_unary_fneg:
-; CHECK: vorps
-; CHECK-NEXT: retq
-  %fabs = tail call <4 x float> @llvm.fabs.v4f32(< 4 x float> %a) #1
-  %fsub = fneg <4 x float> %fabs
-  ret <4 x float> %fsub
-}
-
 define <4 x float> @vector128_uses_abs(<4 x float> %a) {
 ; CHECK-LABEL: vector128_uses_abs:
 ; CHECK-DAG: vandps
@@ -77,18 +47,6 @@ define <4 x float> @vector128_uses_abs(<
   ret <4 x float> %fmul
 }
 
-define <4 x float> @vector128_uses_abs_unary_fneg(<4 x float> %a) {
-; CHECK-LABEL: vector128_uses_abs_unary_fneg:
-; CHECK-DAG: vandps
-; CHECK-DAG: vorps
-; CHECK: vmulps
-; CHECK-NEXT: retq
-  %fabs = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %a) #1
-  %fsub = fneg <4 x float> %fabs
-  %fmul = fmul <4 x float> %fsub, %fabs
-  ret <4 x float> %fmul
-}
-
 define <8 x float> @vector256_no_abs(<8 x float> %a) {
 ; CHECK-LABEL: vector256_no_abs:
 ; CHECK: vorps
@@ -98,15 +56,6 @@ define <8 x float> @vector256_no_abs(<8
   ret <8 x float> %fsub
 }
 
-define <8 x float> @vector256_no_abs_unary_fneg(<8 x float> %a) {
-; CHECK-LABEL: vector256_no_abs_unary_fneg:
-; CHECK: vorps
-; CHECK-NEXT: retq
-  %fabs = tail call <8 x float> @llvm.fabs.v8f32(< 8 x float> %a) #1
-  %fsub = fneg <8 x float> %fabs
-  ret <8 x float> %fsub
-}
-
 define <8 x float> @vector256_uses_abs(<8 x float> %a) {
 ; CHECK-LABEL: vector256_uses_abs:
 ; CHECK-DAG: vandps
@@ -118,18 +67,6 @@ define <8 x float> @vector256_uses_abs(<
   %fmul = fmul <8 x float> %fsub, %fabs
   ret <8 x float> %fmul
 }
-
-define <8 x float> @vector256_uses_abs_unary_fneg(<8 x float> %a) {
-; CHECK-LABEL: vector256_uses_abs_unary_fneg:
-; CHECK-DAG: vandps
-; CHECK-DAG: vorps
-; CHECK: vmulps
-; CHECK-NEXT: retq
-  %fabs = tail call <8 x float> @llvm.fabs.v8f32(<8 x float> %a) #1
-  %fsub = fneg <8 x float> %fabs
-  %fmul = fmul <8 x float> %fsub, %fabs
-  ret <8 x float> %fmul
-}
 
 declare <4 x float> @llvm.fabs.v4f32(<4 x float> %p)
 declare <8 x float> @llvm.fabs.v8f32(<8 x float> %p)




More information about the llvm-commits mailing list