public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work053)] Fix typo.
@ 2021-05-19 17:21 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-05-19 17:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:35773719e00d4efb032419667a064c09e9982f2e

commit 35773719e00d4efb032419667a064c09e9982f2e
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed May 19 13:20:53 2021 -0400

    Fix typo.
    
    gcc/
    2021-05-19  Michael Meissner  <meissner@linux.ibm.com>
    
            * config/rs6000/rs6000.h (zero_extend_n_bit): Fix typo.

Diff:
---
 gcc/config/rs6000/rs6000.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 61442855f27..35d28200067 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -2641,7 +2641,7 @@ zero_extend_n_bit (int n_bits, HOST_WIDE_INT value)
 {
   unsigned HOST_WIDE_INT uvalue = (unsigned HOST_WIDE_INT) value;
   unsigned HOST_WIDE_INT mask
-    = (HOST_WIDE_INT_1U << (n_bits + 1)) - HOST_WIDE_INT_1U;
+    = (HOST_WIDE_INT_1U << n_bits) - HOST_WIDE_INT_1U;
 
   return uvalue & mask;
 }


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

only message in thread, other threads:[~2021-05-19 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19 17:21 [gcc(refs/users/meissner/heads/work053)] Fix typo 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).