From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7808) id 784CE385840C; Thu, 1 Dec 2022 06:10:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 784CE385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669875053; bh=FddjpQfAqAM/XqgMsXLnhJNJVfncoBL9ZbeuAXkqlOU=; h=From:To:Subject:Date:From; b=rpPgBXRDF4Fofdyt5vDvE2BHz6qNtyNyQ8r3ZFBkdXaM/OR4+OCURTyPLZiDgHNl0 TEKjrApdXRW742PP25tkT8nQVz4ELo75b+zfZmVbxY5Rx0+NcDd8FTb+O/JvaEeSvG BfytNo/weQM80DonD4OT0wFnwssO7q6NbSUpFCj4= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: HaoChen Gui To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4434] rs6000: Corrects comments which are added by r13-4423 X-Act-Checkin: gcc X-Git-Author: Haochen Gui X-Git-Refname: refs/heads/master X-Git-Oldrev: 4304e09a1617bcf1c87f5bc96017ae5017379d75 X-Git-Newrev: 125f294e851b2282ee3bc88a6e5957cc90f013bd Message-Id: <20221201061053.784CE385840C@sourceware.org> Date: Thu, 1 Dec 2022 06:10:53 +0000 (GMT) List-Id: https://gcc.gnu.org/g:125f294e851b2282ee3bc88a6e5957cc90f013bd commit r13-4434-g125f294e851b2282ee3bc88a6e5957cc90f013bd Author: Haochen Gui 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) {