public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Meissner <meissner@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/meissner/heads/work053)] Fix typo.
Date: Wed, 19 May 2021 17:21:45 +0000 (GMT)	[thread overview]
Message-ID: <20210519172145.61F0D393BC1A@sourceware.org> (raw)

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;
 }


                 reply	other threads:[~2021-05-19 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210519172145.61F0D393BC1A@sourceware.org \
    --to=meissner@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).