aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaochen Gui <guihaoc@gcc.gnu.org>2022-12-01 13:55:46 +0800
committerHaochen Gui <guihaoc@gcc.gnu.org>2022-12-01 14:09:22 +0800
commit125f294e851b2282ee3bc88a6e5957cc90f013bd (patch)
tree4de9199b0a7fffbc259c7bf26000b8d7407fe9d0
parent4304e09a1617bcf1c87f5bc96017ae5017379d75 (diff)
downloadgcc-125f294e851b2282ee3bc88a6e5957cc90f013bd.zip
gcc-125f294e851b2282ee3bc88a6e5957cc90f013bd.tar.gz
gcc-125f294e851b2282ee3bc88a6e5957cc90f013bd.tar.bz2
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.
-rw-r--r--gcc/config/rs6000/rs6000-call.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000-call.cc b/gcc/config/rs6000/rs6000-call.cc
index c2a4e4f..59c51fa 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)
{