public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work139)] Revert patches
@ 2023-10-16 18:23 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-10-16 18:23 UTC (permalink / raw)
  To: gcc-cvs

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

commit f2a90e4af4b6d6b3cefb9e2d478095638bf4054e
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Oct 12 00:29:49 2023 -0400

    Revert patches

Diff:
---
 gcc/config/rs6000/rs6000.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index 6ffd982c7bcf..2d1d379e1287 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -10370,6 +10370,7 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift,
   /* Leading zeros may be cleaned by rldicl with a mask.  Change leading zeros
      to ones and then recheck it.  */
   int lz = clz_hwi (c);
+<<<<<<< HEAD
 
 <<<<<<< HEAD
   /* If lz == 0, the left shift is undefined.  */
@@ -10385,6 +10386,8 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift,
   if (!lz)
     return false;
 
+=======
+>>>>>>> ab63444d033 (Revert patches)
   HOST_WIDE_INT unmask_c
     = c | (HOST_WIDE_INT_M1U << (HOST_BITS_PER_WIDE_INT - lz));
   int n;

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

* [gcc(refs/users/meissner/heads/work139)] Revert patches
@ 2023-10-12 21:54 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-10-12 21:54 UTC (permalink / raw)
  To: gcc-cvs

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

commit 8f3b5e556cf7cc9b0dee82c4f9edd0a1f890f49a
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Oct 12 00:29:49 2023 -0400

    Revert patches

Diff:
---
 gcc/config/rs6000/rs6000.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index 6ffd982c7bc..2d1d379e128 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -10370,6 +10370,7 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift,
   /* Leading zeros may be cleaned by rldicl with a mask.  Change leading zeros
      to ones and then recheck it.  */
   int lz = clz_hwi (c);
+<<<<<<< HEAD
 
 <<<<<<< HEAD
   /* If lz == 0, the left shift is undefined.  */
@@ -10385,6 +10386,8 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift,
   if (!lz)
     return false;
 
+=======
+>>>>>>> ab63444d033 (Revert patches)
   HOST_WIDE_INT unmask_c
     = c | (HOST_WIDE_INT_M1U << (HOST_BITS_PER_WIDE_INT - lz));
   int n;

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

* [gcc(refs/users/meissner/heads/work139)] Revert patches
@ 2023-10-12  4:29 Michael Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2023-10-12  4:29 UTC (permalink / raw)
  To: gcc-cvs

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

commit ab63444d033067ee72baab1f1af16a4224eac5b2
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Oct 12 00:29:49 2023 -0400

    Revert patches

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

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index b03913fe71b..2828f01413c 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -10370,17 +10370,6 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift,
   /* Leading zeros may be cleaned by rldicl with a mask.  Change leading zeros
      to ones and then recheck it.  */
   int lz = clz_hwi (c);
-
-  /* Different machines interpret num << shift differently if shift is at least
-     the number of bits in num's representation.  It is explicitly undefined
-     behavior in the C/C++ langauges.
-
-     In particular (-1 << 64) on an x86_64 produces -1 and (-1 << 64) on a
-     64-bit PowerPC produces 0.  This difference causes a cross compiler on
-     x86_64 to recurse until it runs out of stack.  */
-  if (!lz)
-    return false;
-
   HOST_WIDE_INT unmask_c
     = c | (HOST_WIDE_INT_M1U << (HOST_BITS_PER_WIDE_INT - lz));
   int n;

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

end of thread, other threads:[~2023-10-16 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16 18:23 [gcc(refs/users/meissner/heads/work139)] Revert patches Michael Meissner
  -- strict thread matches above, loose matches on Subject: below --
2023-10-12 21:54 Michael Meissner
2023-10-12  4:29 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).