Hi!

Noticed two weird ways to spell permutation in some comments.

Committed to trunk as obvious.

2026-02-07  Jakub Jelinek  <[email protected]>

        * optabs.cc (expand_vec_perm_const): Comment spelling fix,
        permuation -> permutation.
        * config/arm/arm.cc (arm_evpc_neon_vtbl): Likewise.
        * config/loongarch/loongarch.cc (loongarch_try_expand_lsx_vshuf_const):
        Comment spelling fix, permuatation -> permutation.
        (loongarch_is_elem_duplicate): Likewise.  Comment spelling fix,
        permuation -> permutation.

--- gcc/optabs.cc.jj    2026-01-29 23:24:41.162744585 +0100
+++ gcc/optabs.cc       2026-02-06 20:03:17.358148555 +0100
@@ -6732,7 +6732,7 @@ expand_vec_perm_const (machine_mode mode
     v1 = v0;
   v1 = force_reg (mode, v1);
 
-  /* Otherwise expand as a fully variable permuation.  */
+  /* Otherwise expand as a fully variable permutation.  */
 
   /* The optabs are only defined for selectors with the same width
      as the values being permuted.  */
--- gcc/config/arm/arm.cc.jj    2026-02-06 11:18:47.070640322 +0100
+++ gcc/config/arm/arm.cc       2026-02-06 20:02:26.517997661 +0100
@@ -32004,7 +32004,7 @@ arm_evpc_neon_vext (struct expand_vec_pe
   return true;
 }
 
-/* The NEON VTBL instruction is a fully variable permuation that's even
+/* The NEON VTBL instruction is a fully variable permutation that's even
    stronger than what we expose via VEC_PERM_EXPR.  What it doesn't do
    is mask the index operand as VEC_PERM_EXPR requires.  Therefore we
    can do slightly better by expanding this as a constant where we don't
--- gcc/config/loongarch/loongarch.cc.jj        2026-02-03 09:13:41.673724716 
+0100
+++ gcc/config/loongarch/loongarch.cc   2026-02-06 20:03:01.150419248 +0100
@@ -8848,7 +8848,7 @@ loongarch_set_handled_components (sbitma
 }
 
 /* Use the vshuf instruction to implement all 128-bit constant vector
-   permuatation.  */
+   permutation.  */
 
 static bool
 loongarch_try_expand_lsx_vshuf_const (struct expand_vec_perm_d *d)
@@ -9581,7 +9581,7 @@ loongarch_is_elem_duplicate (struct expa
    When GCC wants to performs a vector permutation, it provides two op
    reigster, one target register, and a selector.
    In const vector permutation case, GCC provides selector as a char array
-   that contains original value; in variable vector permuatation
+   that contains original value; in variable vector permutation
    (performs via vec_perm<mode> insn template), it provides a vector register.
    We assume that nelt is the elements numbers inside single vector in current
    256bit vector mode.
@@ -9608,7 +9608,7 @@ loongarch_is_elem_duplicate (struct expa
    by single instruction easily.
 
    3.  What LASX permutation instruction does:
-   In short, it just execute two independent 128bit vector permuatation, and
+   In short, it just execute two independent 128bit vector permutation, and
    it's the reason that we need to do the jobs below.  We will explain it.
    op0, op1, target, and selector will be separate into high 128bit and low
    128bit, and do permutation as the description below:
@@ -9638,8 +9638,8 @@ loongarch_is_elem_duplicate (struct expa
    c) Use other instructions to process op and put correct result into target.
    */
 
-/* Implementation of constant vector permuatation.  This function identifies
-   recognized pattern of permuation selector argument, and use one or more
+/* Implementation of constant vector permutation.  This function identifies
+   recognized pattern of permutation selector argument, and use one or more
    instruction (s) to finish the permutation job correctly.  For unsupported
    patterns, it will return false.  */
 

        Jakub

Reply via email to