public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [2/9] ARM changes to adjust vec_perm_const hook
@ 2022-05-18 11:16 Prathamesh Kulkarni
  2022-05-18 12:02 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Prathamesh Kulkarni @ 2022-05-18 11:16 UTC (permalink / raw)
  To: gcc Patches, Kyrill Tkachov

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

Hi,
The attached patch adjusts vec_perm_const hook to accommodate the new parameter.
For rationale, please see:
https://gcc.gnu.org/pipermail/gcc-patches/2022-May/595128.html
OK to commit if bootstrap+test passes ?

Thanks,
Prathamesh

[-- Attachment #2: vec-perm-const-1-arm.txt --]
[-- Type: text/plain, Size: 669 bytes --]

diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index 2afe0445ed5..48759532ab3 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -31813,9 +31813,12 @@ arm_expand_vec_perm_const_1 (struct expand_vec_perm_d *d)
 /* Implement TARGET_VECTORIZE_VEC_PERM_CONST.  */
 
 static bool
-arm_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, rtx op1,
-			      const vec_perm_indices &sel)
+arm_vectorize_vec_perm_const (machine_mode vmode, machine_mode op_mode, rtx target,
+			      rtx op0, rtx op1, const vec_perm_indices &sel)
 {
+  if (vmode != op_mode)
+    return false;
+
   struct expand_vec_perm_d d;
   int i, nelt, which;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2/9] ARM changes to adjust vec_perm_const hook
  2022-05-18 11:16 [2/9] ARM changes to adjust vec_perm_const hook Prathamesh Kulkarni
@ 2022-05-18 12:02 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2022-05-18 12:02 UTC (permalink / raw)
  To: Prathamesh Kulkarni via Gcc-patches

Prathamesh Kulkarni via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> Hi,
> The attached patch adjusts vec_perm_const hook to accommodate the new parameter.
> For rationale, please see:
> https://gcc.gnu.org/pipermail/gcc-patches/2022-May/595128.html
> OK to commit if bootstrap+test passes ?
>
> Thanks,
> Prathamesh
>
> diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
> index 2afe0445ed5..48759532ab3 100644
> --- a/gcc/config/arm/arm.cc
> +++ b/gcc/config/arm/arm.cc
> @@ -31813,9 +31813,12 @@ arm_expand_vec_perm_const_1 (struct expand_vec_perm_d *d)
>  /* Implement TARGET_VECTORIZE_VEC_PERM_CONST.  */
>  
>  static bool
> -arm_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, rtx op1,
> -			      const vec_perm_indices &sel)
> +arm_vectorize_vec_perm_const (machine_mode vmode, machine_mode op_mode, rtx target,

Formatting nit: long line.

Patch is OK with the parameters reflowed, like you did for aarch64.

Same nit for some of the other patches (but some are OK as-is).
OK for 2-8 with that fixed.

Thanks,
Richard

> +			      rtx op0, rtx op1, const vec_perm_indices &sel)
>  {
> +  if (vmode != op_mode)
> +    return false;
> +
>    struct expand_vec_perm_d d;
>    int i, nelt, which;
>  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-18 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 11:16 [2/9] ARM changes to adjust vec_perm_const hook Prathamesh Kulkarni
2022-05-18 12:02 ` Richard Sandiford

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).