]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loongarch: Fix typos in various files
authorDhruv Chawla <dhruvc@nvidia.com>
Wed, 20 May 2026 11:37:44 +0000 (11:37 +0000)
committerDhruv Chawla <dhruvc@nvidia.com>
Mon, 1 Jun 2026 15:55:19 +0000 (21:25 +0530)
Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/loongarch/lasx.md: Fix typos.
* config/loongarch/loongarch-builtins.cc: Likewise.
* config/loongarch/loongarch-c.cc (loongarch_pragma_target_parse): Likewise.
* config/loongarch/loongarch-opts.cc (loongarch_generate_mrecip_scheme): Likewise.
* config/loongarch/loongarch-opts.h (loongarch_config_target): Likewise.
* config/loongarch/loongarch.cc (loongarch_setup_incoming_varargs): Likewise.
(loongarch_build_integer): Likewise.
(loongarch_explicit_relocs_p): Likewise.
(loongarch_valid_lo_sum_p): Likewise.
(loongarch_addu16i_imm12_operand_p): Likewise.
(loongarch_rewrite_mem_for_simple_ldst): Likewise.
(loongarch_is_elem_duplicate): Likewise.
(loongarch_expand_vec_perm_const): Likewise.
(loongarch_sched_reassociation_width): Likewise.
(loongarch_expand_vec_unpack): Likewise.
(dispatch_function_versions): Likewise.
(loongarch_option_same_function_versions): Likewise.
* config/loongarch/loongarch.h: Likewise.
* config/loongarch/loongarch.md: Likewise.
* config/loongarch/lsx.md: Likewise.
* config/loongarch/predicates.md: Likewise.
* config/loongarch/simd.md: Likewise.
* config/loongarch/sync.md: Likewise.

12 files changed:
gcc/config/loongarch/lasx.md
gcc/config/loongarch/loongarch-builtins.cc
gcc/config/loongarch/loongarch-c.cc
gcc/config/loongarch/loongarch-opts.cc
gcc/config/loongarch/loongarch-opts.h
gcc/config/loongarch/loongarch.cc
gcc/config/loongarch/loongarch.h
gcc/config/loongarch/loongarch.md
gcc/config/loongarch/lsx.md
gcc/config/loongarch/predicates.md
gcc/config/loongarch/simd.md
gcc/config/loongarch/sync.md

index d606bf061d024a576b8b050b9af3e72f1e393ece..71bbaaa475c99d661ac43657a12638bf7c621f76 100644 (file)
    (V8SI "V8HI")
    (V4DI "V4SI")])
 
-;; Double-sized Vector MODE with same elemet type. "Vector, Enlarged-MODE"
+;; Double-sized Vector MODE with same element type. "Vector, Enlarged-MODE"
 (define_mode_attr VEMODE256
   [(V8SF "V16SF")
    (V8SI "V16SI")
index f7aae038671cd1e6a8ed80e64f1348e8ef8499ea..14bd9d247412a2a9acb71474105cdaa27286ca29 100644 (file)
@@ -904,7 +904,7 @@ static const struct loongarch_builtin_description loongarch_builtins[] = {
   DIRECT_NO_TARGET_BUILTIN (ldpte_d, LARCH_VOID_FTYPE_DI_UQI, la64),
   DIRECT_NO_TARGET_BUILTIN (ldpte_w, LARCH_VOID_FTYPE_SI_UQI,  la64_or_la32s),
 
-  /* CRC Instrinsic */
+  /* CRC Intrinsic */
 
   DIRECT_BUILTIN (crc_w_b_w, LARCH_SI_FTYPE_QI_SI, la64),
   DIRECT_BUILTIN (crc_w_h_w, LARCH_SI_FTYPE_HI_SI, la64),
index 9556641bd1d75ed0b4565bc19fe87f4244334b6d..84d32acf1c90b1ff03f494286b22671a042bed96 100644 (file)
@@ -235,7 +235,7 @@ loongarch_pragma_target_parse (tree args, tree pop_target)
 
   cpp_opts->warn_unused_macros = saved_warn_unused_macros;
 
-  /* If we're popping or reseting make sure to update the globals so that
+  /* If we're popping or resetting make sure to update the globals so that
      the optab availability predicates get recomputed.  */
   if (pop_target)
     loongarch_save_restore_target_globals (pop_target);
index 0fa393b90285237c74382c2925160ddf16bb0d3b..e0fa33796703d32d5fcb9d926932cbf1f1a36b78 100644 (file)
@@ -985,7 +985,7 @@ loongarch_generate_mrecip_scheme (unsigned int mask)
 
 
 
-/* Refresh the switches acccording to the resolved loongarch_target struct.  */
+/* Refresh the switches according to the resolved loongarch_target struct.  */
 void
 loongarch_target_option_override (struct loongarch_target *target,
                                  struct gcc_options *opts,
index 69691aa3be539f9873c591838995601625651f91..96867750336c14c6e81b1a5c356c3e3ffb237039 100644 (file)
@@ -52,7 +52,7 @@ loongarch_config_target (struct loongarch_target *target,
                         int follow_multilib_list_p);
 
 
-/* Refresh the switches acccording to the resolved loongarch_target struct.  */
+/* Refresh the switches according to the resolved loongarch_target struct.  */
 void
 loongarch_target_option_override (struct loongarch_target *target,
                                  struct gcc_options *opts,
index 0831da018ff299bc71ad856eb4368b6994ce3992..40111971501270337c830b3826b2e0ad32e3403d 100644 (file)
@@ -177,7 +177,7 @@ int loongarch_dwarf_regno[FIRST_PSEUDO_REGISTER];
 static bool loongarch_hard_regno_mode_ok_p[MAX_MACHINE_MODE]
                                          [FIRST_PSEUDO_REGISTER];
 
-/* Index C is true if character C is a valid PRINT_OPERAND punctation
+/* Index C is true if character C is a valid PRINT_OPERAND punctuation
    character.  */
 static bool loongarch_print_operand_punct[256];
 
@@ -767,8 +767,8 @@ loongarch_setup_incoming_varargs (cumulative_args_t cum,
   local_cum = *get_cumulative_args (cum);
 
   /* For a C23 variadic function w/o any named argument, and w/o an
-     artifical argument for large return value, skip advancing args.
-     There is such an artifical argument iff. arg.type is non-NULL
+     artificial argument for large return value, skip advancing args.
+     There is such an artificial argument iff. arg.type is non-NULL
      (PR 114175).  */
   if (!TYPE_NO_NAMED_ARGS_STDARG_P (TREE_TYPE (current_function_decl))
       || arg.type != NULL_TREE)
@@ -1620,7 +1620,7 @@ loongarch_build_integer (struct loongarch_integer_op *codes,
 
       /* Determine whether the upper 32 bits are sign-extended from the lower
         32 bits. If it is, the instructions to load the high order can be
-        ommitted.  */
+        omitted.  */
       if (lu32i[sign31] && lu52i[sign31])
        return cost;
       /* If the lower 32 bits are the same as the upper 32 bits, just copy
@@ -1665,7 +1665,7 @@ loongarch_build_integer (struct loongarch_integer_op *codes,
 
 /* Fill CODES with a sequence of rtl operations to load VALUE.
    Return the number of operations needed.
-   Split interger in loongarch_output_move.  */
+   Split integer in loongarch_output_move.  */
 
 static unsigned int
 loongarch_integer_cost (HOST_WIDE_INT value)
@@ -2272,7 +2272,7 @@ loongarch_explicit_relocs_p (enum loongarch_symbol_type type)
        /* If we are performing LTO for a final link, and we have the
           linker plugin so we know the resolution of the symbols, then
           all GOT references are binding to external symbols or
-          preemptable symbols.  So the linker cannot relax them.  */
+          preemptible symbols.  So the linker cannot relax them.  */
        return (in_lto_p
                && !flag_incremental_link
                && HAVE_LTO_PLUGIN == 2
@@ -2466,7 +2466,7 @@ loongarch_valid_lo_sum_p (enum loongarch_symbol_type symbol_type,
   if (!loongarch_split_symbol_type (symbol_type))
     return false;
 
-  /* We can't tell size or alignment when we have BLKmode, so try extracing a
+  /* We can't tell size or alignment when we have BLKmode, so try extracting a
      decl from the symbol if possible.  */
   if (mode == BLKmode)
     {
@@ -4932,7 +4932,7 @@ loongarch_addu16i_imm12_operand_p (HOST_WIDE_INT value, machine_mode mode)
 }
 
 /* Split one integer constant op[0] into two (op[1] and op[2]) for constant
-   plus operation in a specific mode.  The splitted constants can be added
+   plus operation in a specific mode.  The split constants can be added
    onto a register with a single instruction (addi.{d/w} or addu16i.d).  */
 
 void
@@ -6445,7 +6445,7 @@ loongarch_rewrite_mem_for_simple_ldst (rtx mem)
   return new_mem;
 }
 
-/* Print the text for PRINT_OPERAND punctation character CH to FILE.
+/* Print the text for PRINT_OPERAND punctuation character CH to FILE.
    The punctuation characters are:
 
    '.' Print the name of the register with a hard-wired zero (zero or $r0).
@@ -9615,9 +9615,9 @@ loongarch_is_elem_duplicate (struct expand_vec_perm_d *d)
 /* In LASX, some permutation insn does not have the behavior that gcc expects
    when compiler wants to emit a vector permutation.
 
-   1.  What GCC provides via vectorize_vec_perm_const ()'s paramater:
+   1.  What GCC provides via vectorize_vec_perm_const ()'s parameter:
    When GCC wants to performs a vector permutation, it provides two op
-   reigster, one target register, and a selector.
+   register, 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 permutation
    (performs via vec_perm<mode> insn template), it provides a vector register.
@@ -9803,8 +9803,8 @@ loongarch_expand_vec_perm_const (struct expand_vec_perm_d *d)
          idx = d->perm[0];
          /* We will use xvrepl128vei.* insn to achieve the result, but we need
             to make the high/low 128bit has the same contents that contain the
-            value that we need to broardcast, because xvrepl128vei does the
-            broardcast job from every 128bit of source register to
+            value that we need to broadcast, because xvrepl128vei does the
+            broadcast job from every 128bit of source register to
             corresponded part of target register! (A deep sigh.)  */
          if (idx < d->nelt / 2)
            {
@@ -10045,7 +10045,7 @@ loongarch_sched_reassociation_width (unsigned int opc, machine_mode mode)
   return loongarch_cpu_sched_reassociation_width (&la_target, opc, mode);
 }
 
-/* Implement extract a scalar element from vecotr register */
+/* Implement extract a scalar element from vector register */
 
 void
 loongarch_expand_vector_extract (rtx target, rtx vec, int elt)
@@ -10279,7 +10279,7 @@ loongarch_expand_vec_unpack (rtx operands[2], bool unsigned_p)
 
       if (!unsigned_p)
        {
-         /* Extract sign extention for each element comparing each element
+         /* Extract sign extension for each element comparing each element
             with immediate zero.  */
          tmp = gen_reg_rtx (imode);
          emit_insn (cmpFunc (tmp, operands[1], CONST0_RTX (imode)));
@@ -11895,7 +11895,7 @@ dispatch_function_versions (tree dispatch_decl,
 
   gseq = bb_seq (*empty_bb);
   /* Function version dispatch is via IFUNC.  IFUNC resolvers fire before
-     constructors, so explicity call __init_loongarch_feature_bits here.  */
+     constructors, so explicitly call __init_loongarch_feature_bits here.  */
   tree init_fn_type = build_function_type_list (void_type_node,
                                                void_type_node,
                                                NULL);
@@ -12151,10 +12151,10 @@ loongarch_option_same_function_versions (string_slice str1, const_tree,
 /* Output assembly to materialize the address of the stack canary value
    into reg.  The third argument, tmp, should be and should only be
    non-NULL if the extreme code model is effective for the canary.  If
-   the fourth arugment, load, is true, the canary value is loaded into
+   the fourth argument, load, is true, the canary value is loaded into
    the register.
 
-   The assembly cannot be splitted due to security reason.  */
+   The assembly cannot be split due to security reason.  */
 void
 loongarch_output_asm_load_canary (rtx reg, rtx canary, rtx tmp)
 {
index 4d9acd8ca7c52cc960383858b342e2929f803835..3339040a4335487d942863639dd7dc31a2a9b42b 100644 (file)
@@ -1073,7 +1073,7 @@ typedef struct {
                ...
                .uleb128 foo-$LFBxxx
 
-   The .uleb128 requies $LFBxxx to match the FDE start address, which is
+   The .uleb128 requires $LFBxxx to match the FDE start address, which is
    likewise a byte pointer rather than an ISA-encoded address.
 
    At the time of writing, this hook is not used for the function end
index fe6d28e76161bebff826b1acb66193eef02fa828..5c4f8dfb5b574f9682bcd9d12ac3218fdc4c620d 100644 (file)
 ;; Length of instruction in bytes.
 (define_attr "length" ""
    (cond [
-         ;; Branch futher than +/- 128 KiB require two instructions.
+         ;; Branch further than +/- 128 KiB require two instructions.
          (eq_attr "type" "branch")
          (if_then_else (and (le (minus (match_dup 0) (pc)) (const_int 131064))
                             (le (minus (pc) (match_dup 0)) (const_int 131068)))
   [(set_attr "type" "fcvt")
    (set_attr "mode" "<ANYF:MODE>")])
 
-;; conversion of an integeral (or boolean) value to a floating-point value
+;; conversion of an integral (or boolean) value to a floating-point value
 
 (define_insn "floatsidf2"
   [(set (match_operand:DF 0 "register_operand" "=f")
index 2418e62722a79ff6e0925737e80a65e1839baf3b..66359949a42b2ee2b5b4363bd5a101da9be015fe 100644 (file)
    (V4SI "V4HI")
    (V2DI "V2SI")])
 
-;; Double-sized Vector MODE with same elemet type. "Vector, Enlarged-MODE"
+;; Double-sized Vector MODE with same element type. "Vector, Enlarged-MODE"
 (define_mode_attr VEMODE
   [(V4SF "V8SF")
    (V4SI "V8SI")
index af3b770c4e9da068ec65417f00de82cd8c2e036c..9e68684651472a8dc46bad55cbe759beb98fda57 100644 (file)
   (match_code "const,symbol_ref,label_ref")
 {
   /* Split symbol to high and low if return false.
-     If defined TARGET_CMODEL_EXTREME, all symbol would be splited,
-     else if offset is not zero, the symbol would be splited.  */
+     If defined TARGET_CMODEL_EXTREME, all symbol would be split,
+     else if offset is not zero, the symbol would be split.  */
 
   enum loongarch_symbol_type symbol_type;
   loongarch_symbolic_constant_p (op, &symbol_type);
     return true;
 
   /* When compiling with '-mcmodel=medium -mexplicit-relocs'
-     symbols are splited in loongarch_legitimize_call_address.
+     symbols are split in loongarch_legitimize_call_address.
 
      When compiling with '-mcmodel=medium -mno-explicit-relocs',
      first obtain the symbolic address or the address of the
index 3d1e3e7a787ad4347401c0d4cea4e2d7b88c4af1..377e94fb356a13585afdb75551f4bb37b8dfd3b5 100644 (file)
     !flag_trapping_math")
 
 ;; fix_trunc is allowed to raise inexact exception even if
-;; -fno-fp-int-builtin-inexact.  Because the middle end trys to match
+;; -fno-fp-int-builtin-inexact.  Because the middle end tries to match
 ;; (FIX x) and it does not know (FIX (UNSPEC_SIMD_FRINTRZ x)), we need
 ;; to use define_insn_and_split instead of define_expand (expanders are
 ;; not considered during matching).
   [(set_attr "type" "simd_fcmp")
    (set_attr "mode" "<MODE>")])
 
-;; <x>vfcmp.*.{s/d} instructions only as instrinsics
+;; <x>vfcmp.*.{s/d} instructions only as intrinsics
 (define_c_enum "unspec"
   [UNSPEC_SIMD_FCMP_CAF
    UNSPEC_SIMD_FCMP_SAF
index de7b9eb890b3a7f55d71bece2213e7cc8866340f..c7692412331b744a00f3d3e078d5c97951afb347 100644 (file)
@@ -74,7 +74,7 @@
 ;; [1]: https://git.kernel.org/torvalds/c/e031a5f3f1ed
 ;;
 ;; Implementations without support for the finer-granularity hints simply treat
-;; all as the full barrier (DBAR 0), so we can unconditionally start emiting the
+;; all as the full barrier (DBAR 0), so we can unconditionally start emitting the
 ;; more precise hints right away.
 (define_insn "mem_thread_fence_1"
   [(set (match_operand:BLK 0 "" "")