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

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

commit a5603171dfbedd16a51117d3e4dfc223dbac67e1
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Oct 13 15:42:13 2021 -0400

    Fix typo.
    
    2021-10-13  Michael Meissner  <meissner@the-meissners.org>
    
    gcc/
    
            * config/rs6000/rs6000.c (vec_const_to_bytes): Fix typo.

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

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 35f5cc8f89e..8031c9a803b 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -28869,12 +28869,12 @@ vec_const_to_bytes (rtx op,
     }
 
   /* Pack half words together.  */
-  for (size_t i = 0; i <= VECTOR_CONST_16BIT; i++)
+  for (size_t i = 0; i < VECTOR_CONST_16BIT; i++)
     vec_const->h_words[i] = ((vec_const->bytes[2*i] << 8)
 			     | vec_const->bytes[2*i + 1]);
 
   /* Pack words together.  */
-  for (size_t i = 0; i <= VECTOR_CONST_32BIT; i++)
+  for (size_t i = 0; i < VECTOR_CONST_32BIT; i++)
     {
       unsigned word = 0;
       for (size_t j = 0; j < 4; j++)
@@ -28884,7 +28884,7 @@ vec_const_to_bytes (rtx op,
     }
 
   /* Pack double words together.  */
-  for (size_t i = 0; i <= VECTOR_CONST_64BIT; i++)
+  for (size_t i = 0; i < VECTOR_CONST_64BIT; i++)
     {
       unsigned HOST_WIDE_INT d_word = 0;
       for (size_t j = 0; j < 8; j++)


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

only message in thread, other threads:[~2021-10-13 19:42 UTC | newest]

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