public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work092)] Remove support for renaming KF builtins to TF.
@ 2022-06-28 20:53 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2022-06-28 20:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8c46dec060fcf9f7997a5b9720f4ca944aca7de7

commit 8c46dec060fcf9f7997a5b9720f4ca944aca7de7
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Tue Jun 28 16:52:46 2022 -0400

    Remove support for renaming KF builtins to TF.
    
    2022-06-28   Michael Meissner  <meissner@linux.ibm.com>
    
    gcc/
    
            * config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Do not
            convert various KFmode builtins to TFmode builtins if long double
            is IEEE 128-bit.

Diff:
---
 gcc/config/rs6000/rs6000-builtin.cc | 69 -------------------------------------
 1 file changed, 69 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-builtin.cc b/gcc/config/rs6000/rs6000-builtin.cc
index 9b66870d5d5..674ed702bdc 100644
--- a/gcc/config/rs6000/rs6000-builtin.cc
+++ b/gcc/config/rs6000/rs6000-builtin.cc
@@ -3290,75 +3290,6 @@ rs6000_expand_builtin (tree exp, rtx target, rtx /* subtarget */,
   size_t uns_fcode = (size_t)fcode;
   enum insn_code icode = rs6000_builtin_info[uns_fcode].icode;
 
-  /* If we have a long double type instead of _Float128/__float128 for certain
-     IEEE 128-bit builtins, convert the built-in to the TF variant instead of
-     the KF variant.  In the past, when we had long double using the 128-bit
-     encoding, we used the same type for both _Float128/__float128 and long
-     double.  Now, these types are different, but we want to allow code that
-     passes a long double instead of the IEEE 128-bit explicit type.  */
-  if (FLOAT128_IEEE_P (TFmode)
-      && call_expr_nargs (exp) >= 1
-      && CALL_EXPR_ARG (exp, 0) != error_mark_node
-      && TREE_TYPE (CALL_EXPR_ARG (exp, 0)) == long_double_type_node)
-    {
-      switch (icode)
-	{
-	case CODE_FOR_sqrtkf2_odd:
-	  icode = CODE_FOR_sqrttf2_odd;
-	  break;
-	case CODE_FOR_trunckfdf2_odd:
-	  icode = CODE_FOR_trunctfdf2_odd;
-	  break;
-	case CODE_FOR_addkf3_odd:
-	  icode = CODE_FOR_addtf3_odd;
-	  break;
-	case CODE_FOR_subkf3_odd:
-	  icode = CODE_FOR_subtf3_odd;
-	  break;
-	case CODE_FOR_mulkf3_odd:
-	  icode = CODE_FOR_multf3_odd;
-	  break;
-	case CODE_FOR_divkf3_odd:
-	  icode = CODE_FOR_divtf3_odd;
-	  break;
-	case CODE_FOR_fmakf4_odd:
-	  icode = CODE_FOR_fmatf4_odd;
-	  break;
-	case CODE_FOR_xsxexpqp_kf:
-	  icode = CODE_FOR_xsxexpqp_tf;
-	  break;
-	case CODE_FOR_xsxsigqp_kf:
-	  icode = CODE_FOR_xsxsigqp_tf;
-	  break;
-	case CODE_FOR_xststdcnegqp_kf:
-	  icode = CODE_FOR_xststdcnegqp_tf;
-	  break;
-	case CODE_FOR_xsiexpqp_kf:
-	  icode = CODE_FOR_xsiexpqp_tf;
-	  break;
-	case CODE_FOR_xsiexpqpf_kf:
-	  icode = CODE_FOR_xsiexpqpf_tf;
-	  break;
-	case CODE_FOR_xststdcqp_kf:
-	  icode = CODE_FOR_xststdcqp_tf;
-	  break;
-	case CODE_FOR_xscmpexpqp_eq_kf:
-	  icode = CODE_FOR_xscmpexpqp_eq_tf;
-	  break;
-	case CODE_FOR_xscmpexpqp_lt_kf:
-	  icode = CODE_FOR_xscmpexpqp_lt_tf;
-	  break;
-	case CODE_FOR_xscmpexpqp_gt_kf:
-	  icode = CODE_FOR_xscmpexpqp_gt_tf;
-	  break;
-	case CODE_FOR_xscmpexpqp_unordered_kf:
-	  icode = CODE_FOR_xscmpexpqp_unordered_tf;
-	  break;
-	default:
-	  break;
-	}
-    }
-
   /* In case of "#pragma target" changes, we initialize all builtins
      but check for actual availability now, during expand time.  For
      invalid builtins, generate a normal call.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-28 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 20:53 [gcc(refs/users/meissner/heads/work092)] Remove support for renaming KF builtins to TF Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).