public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: HaoChen Gui <guihaoc@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-4434] rs6000: Corrects comments which are added by r13-4423
Date: Thu,  1 Dec 2022 06:10:53 +0000 (GMT)	[thread overview]
Message-ID: <20221201061053.784CE385840C@sourceware.org> (raw)

https://gcc.gnu.org/g:125f294e851b2282ee3bc88a6e5957cc90f013bd

commit r13-4434-g125f294e851b2282ee3bc88a6e5957cc90f013bd
Author: Haochen Gui <guihaoc@gcc.gnu.org>
Date:   Thu Dec 1 13:55:46 2022 +0800

    rs6000: Corrects comments which are added by r13-4423
    
    gcc/
            * config/rs6000/rs6000-call.cc (swap_endian_selector_for_mode):
            Corrects comments of this function and make them clear.

Diff:
---
 gcc/config/rs6000/rs6000-call.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-call.cc b/gcc/config/rs6000/rs6000-call.cc
index c2a4e4f4e27..59c51fa3579 100644
--- a/gcc/config/rs6000/rs6000-call.cc
+++ b/gcc/config/rs6000/rs6000-call.cc
@@ -2802,8 +2802,10 @@ rs6000_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p,
   return build_va_arg_indirect_ref (addr);
 }
 
-/* The selector (perm) is expected to be used with vperm direct as the
-   function generates reversed perm for little endian with this patch.  */
+/* Return the permutation index for the swapping on the given vector mode.
+   Note that the permutation index is correspondingly generated by endianness,
+   it should be used by direct vector permutation.  */
+
 rtx
 swap_endian_selector_for_mode (machine_mode mode)
 {

                 reply	other threads:[~2022-12-01  6:10 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=20221201061053.784CE385840C@sourceware.org \
    --to=guihaoc@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).