public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work104)] PR target/107299
@ 2023-01-10 20:00 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-01-10 20:00 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4ab5618099b6da1ad0f00b3d6fc06629758c5d55

commit 4ab5618099b6da1ad0f00b3d6fc06629758c5d55
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Tue Jan 10 14:59:05 2023 -0500

    PR target/107299
    
    2022-12-27  Kewen Lin  <linkw@linux.ibm.com>
    
    gcc/ChangeLog:
    
            * tree.cc (build_common_tree_nodes): Remove workaround for rs6000
            KFmode.

Diff:
---
 gcc/tree.cc | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/gcc/tree.cc b/gcc/tree.cc
index 78b64ee98b3..46a3a742592 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -9474,15 +9474,6 @@ build_common_tree_nodes (bool signed_char)
       if (!targetm.floatn_mode (n, extended).exists (&mode))
 	continue;
       int precision = GET_MODE_PRECISION (mode);
-      /* Work around the rs6000 KFmode having precision 113 not
-	 128.  */
-      const struct real_format *fmt = REAL_MODE_FORMAT (mode);
-      gcc_assert (fmt->b == 2 && fmt->emin + fmt->emax == 3);
-      int min_precision = fmt->p + ceil_log2 (fmt->emax - fmt->emin);
-      if (!extended)
-	gcc_assert (min_precision == n);
-      if (precision < min_precision)
-	precision = min_precision;
       FLOATN_NX_TYPE_NODE (i) = make_node (REAL_TYPE);
       TYPE_PRECISION (FLOATN_NX_TYPE_NODE (i)) = precision;
       layout_type (FLOATN_NX_TYPE_NODE (i));

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gcc(refs/users/meissner/heads/work104)] PR target/107299
@ 2023-01-07  1:43 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-01-07  1:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:492a511d8e78c5ba2cdd90f75039aa2c3cfd12c6

commit 492a511d8e78c5ba2cdd90f75039aa2c3cfd12c6
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Fri Jan 6 20:42:49 2023 -0500

    PR target/107299
    
    2022-12-27  Kewen Lin  <linkw@linux.ibm.com>
    
    gcc/ChangeLog:
    
            * tree.cc (build_common_tree_nodes): Remove workaround for rs6000
            KFmode.

Diff:
---
 gcc/tree.cc | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/gcc/tree.cc b/gcc/tree.cc
index 78b64ee98b3..46a3a742592 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -9474,15 +9474,6 @@ build_common_tree_nodes (bool signed_char)
       if (!targetm.floatn_mode (n, extended).exists (&mode))
 	continue;
       int precision = GET_MODE_PRECISION (mode);
-      /* Work around the rs6000 KFmode having precision 113 not
-	 128.  */
-      const struct real_format *fmt = REAL_MODE_FORMAT (mode);
-      gcc_assert (fmt->b == 2 && fmt->emin + fmt->emax == 3);
-      int min_precision = fmt->p + ceil_log2 (fmt->emax - fmt->emin);
-      if (!extended)
-	gcc_assert (min_precision == n);
-      if (precision < min_precision)
-	precision = min_precision;
       FLOATN_NX_TYPE_NODE (i) = make_node (REAL_TYPE);
       TYPE_PRECISION (FLOATN_NX_TYPE_NODE (i)) = precision;
       layout_type (FLOATN_NX_TYPE_NODE (i));

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gcc(refs/users/meissner/heads/work104)] PR target/107299
@ 2023-01-04  6:37 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-01-04  6:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:aa3653b0f4720674044946ac41d46e60734c84e8

commit aa3653b0f4720674044946ac41d46e60734c84e8
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Jan 4 01:36:40 2023 -0500

    PR target/107299
    
    2022-12-27  Kewen Lin  <linkw@linux.ibm.com>
    
    gcc/ChangeLog:
    
            * tree.cc (build_common_tree_nodes): Remove workaround for rs6000
            KFmode.

Diff:
---
 gcc/tree.cc | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/gcc/tree.cc b/gcc/tree.cc
index 78b64ee98b3..46a3a742592 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -9474,15 +9474,6 @@ build_common_tree_nodes (bool signed_char)
       if (!targetm.floatn_mode (n, extended).exists (&mode))
 	continue;
       int precision = GET_MODE_PRECISION (mode);
-      /* Work around the rs6000 KFmode having precision 113 not
-	 128.  */
-      const struct real_format *fmt = REAL_MODE_FORMAT (mode);
-      gcc_assert (fmt->b == 2 && fmt->emin + fmt->emax == 3);
-      int min_precision = fmt->p + ceil_log2 (fmt->emax - fmt->emin);
-      if (!extended)
-	gcc_assert (min_precision == n);
-      if (precision < min_precision)
-	precision = min_precision;
       FLOATN_NX_TYPE_NODE (i) = make_node (REAL_TYPE);
       TYPE_PRECISION (FLOATN_NX_TYPE_NODE (i)) = precision;
       layout_type (FLOATN_NX_TYPE_NODE (i));

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-10 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 20:00 [gcc(refs/users/meissner/heads/work104)] PR target/107299 Michael Meissner
  -- strict thread matches above, loose matches on Subject: below --
2023-01-07  1:43 Michael Meissner
2023-01-04  6:37 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).