]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Fix whitespace in ls64 builtin implementation [PR110100]
authorAlex Coplan <alex.coplan@arm.com>
Tue, 6 Jun 2023 10:04:45 +0000 (11:04 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Wed, 7 Jun 2023 16:41:37 +0000 (17:41 +0100)
The ls64 builtin code was using incorrect GNU style with eight spaces where
there should be a tab. Fixed thusly.

gcc/ChangeLog:

PR target/110100
* config/aarch64/aarch64-builtins.cc (aarch64_init_ls64_builtins_types):
Replace eight consecutive spaces with tabs.
(aarch64_init_ls64_builtins): Likewise.
(aarch64_expand_builtin_ls64): Likewise.
* config/aarch64/aarch64.md (ld64b): Likewise.
(st64b): Likewise.
(st64bv): Likewise
(st64bv0): Likewise.

gcc/config/aarch64/aarch64-builtins.cc
gcc/config/aarch64/aarch64.md

index 50c20c8fa8696abac173ad5e28b749dc5fdaaf8c..d48109139e366db4f5bdc1390041230545e2a3ee 100644 (file)
@@ -1862,11 +1862,11 @@ aarch64_init_ls64_builtins_types (void)
   gcc_assert (TYPE_ALIGN (array_type) == 64);
 
   tree field = build_decl (input_location, FIELD_DECL,
-                           get_identifier ("val"), array_type);
+                          get_identifier ("val"), array_type);
 
   ls64_arm_data_t = lang_hooks.types.simulate_record_decl (input_location,
-                         tuple_type_name,
-                         make_array_slice (&field, 1));
+                        tuple_type_name,
+                        make_array_slice (&field, 1));
 
   gcc_assert (TYPE_MODE (ls64_arm_data_t) == V8DImode);
   gcc_assert (TYPE_MODE_RAW (ls64_arm_data_t) == TYPE_MODE (ls64_arm_data_t));
@@ -1881,16 +1881,16 @@ aarch64_init_ls64_builtins (void)
   ls64_builtins_data data[4] = {
     {"__builtin_aarch64_ld64b", AARCH64_LS64_BUILTIN_LD64B,
      build_function_type_list (ls64_arm_data_t,
-                               const_ptr_type_node, NULL_TREE)},
+                              const_ptr_type_node, NULL_TREE)},
     {"__builtin_aarch64_st64b", AARCH64_LS64_BUILTIN_ST64B,
      build_function_type_list (void_type_node, ptr_type_node,
-                               ls64_arm_data_t, NULL_TREE)},
+                              ls64_arm_data_t, NULL_TREE)},
     {"__builtin_aarch64_st64bv", AARCH64_LS64_BUILTIN_ST64BV,
      build_function_type_list (uint64_type_node, ptr_type_node,
-                               ls64_arm_data_t, NULL_TREE)},
+                              ls64_arm_data_t, NULL_TREE)},
     {"__builtin_aarch64_st64bv0", AARCH64_LS64_BUILTIN_ST64BV0,
      build_function_type_list (uint64_type_node, ptr_type_node,
-                               ls64_arm_data_t, NULL_TREE)},
+                              ls64_arm_data_t, NULL_TREE)},
   };
 
   for (size_t i = 0; i < ARRAY_SIZE (data); ++i)
@@ -2509,40 +2509,40 @@ aarch64_expand_builtin_ls64 (int fcode, tree exp, rtx target)
     {
     case AARCH64_LS64_BUILTIN_LD64B:
       {
-        rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
-        create_output_operand (&ops[0], target, V8DImode);
-        create_input_operand (&ops[1], op0, DImode);
-        expand_insn (CODE_FOR_ld64b, 2, ops);
-        return ops[0].value;
+       rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
+       create_output_operand (&ops[0], target, V8DImode);
+       create_input_operand (&ops[1], op0, DImode);
+       expand_insn (CODE_FOR_ld64b, 2, ops);
+       return ops[0].value;
       }
     case AARCH64_LS64_BUILTIN_ST64B:
       {
-        rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
-        rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
-        create_output_operand (&ops[0], op0, DImode);
-        create_input_operand (&ops[1], op1, V8DImode);
-        expand_insn (CODE_FOR_st64b, 2, ops);
-        return const0_rtx;
+       rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
+       rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
+       create_output_operand (&ops[0], op0, DImode);
+       create_input_operand (&ops[1], op1, V8DImode);
+       expand_insn (CODE_FOR_st64b, 2, ops);
+       return const0_rtx;
       }
     case AARCH64_LS64_BUILTIN_ST64BV:
       {
-        rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
-        rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
-        create_output_operand (&ops[0], target, DImode);
-        create_input_operand (&ops[1], op0, DImode);
-        create_input_operand (&ops[2], op1, V8DImode);
-        expand_insn (CODE_FOR_st64bv, 3, ops);
-        return ops[0].value;
+       rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
+       rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
+       create_output_operand (&ops[0], target, DImode);
+       create_input_operand (&ops[1], op0, DImode);
+       create_input_operand (&ops[2], op1, V8DImode);
+       expand_insn (CODE_FOR_st64bv, 3, ops);
+       return ops[0].value;
       }
     case AARCH64_LS64_BUILTIN_ST64BV0:
       {
-        rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
-        rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
-        create_output_operand (&ops[0], target, DImode);
-        create_input_operand (&ops[1], op0, DImode);
-        create_input_operand (&ops[2], op1, V8DImode);
-        expand_insn (CODE_FOR_st64bv0, 3, ops);
-        return ops[0].value;
+       rtx op0 = expand_normal (CALL_EXPR_ARG (exp, 0));
+       rtx op1 = expand_normal (CALL_EXPR_ARG (exp, 1));
+       create_output_operand (&ops[0], target, DImode);
+       create_input_operand (&ops[1], op0, DImode);
+       create_input_operand (&ops[2], op1, V8DImode);
+       expand_insn (CODE_FOR_st64bv0, 3, ops);
+       return ops[0].value;
       }
     }
 
index c2ba726f8a03caab9c849145b04f795b4b9da820..11d0d9c8eb6438a3afb39cab89d0eec574e15a16 100644 (file)
 ;; Load/Store 64-bit (LS64) instructions.
 (define_insn "ld64b"
   [(set (match_operand:V8DI 0 "register_operand" "=r")
-        (unspec_volatile:V8DI
-          [(mem:V8DI (match_operand:DI 1 "register_operand" "r"))]
-            UNSPEC_LD64B)
+       (unspec_volatile:V8DI
+         [(mem:V8DI (match_operand:DI 1 "register_operand" "r"))]
+           UNSPEC_LD64B)
   )]
   "TARGET_LS64"
   "ld64b\\t%0, [%1]"
 
 (define_insn "st64b"
   [(set (mem:V8DI (match_operand:DI 0 "register_operand" "=r"))
-        (unspec_volatile:V8DI [(match_operand:V8DI 1 "register_operand" "r")]
-            UNSPEC_ST64B)
+       (unspec_volatile:V8DI [(match_operand:V8DI 1 "register_operand" "r")]
+           UNSPEC_ST64B)
   )]
   "TARGET_LS64"
   "st64b\\t%1, [%0]"
 
 (define_insn "st64bv"
   [(set (match_operand:DI 0 "register_operand" "=r")
-        (unspec_volatile:DI [(const_int 0)] UNSPEC_ST64BV_RET))
+       (unspec_volatile:DI [(const_int 0)] UNSPEC_ST64BV_RET))
    (set (mem:V8DI (match_operand:DI 1 "register_operand" "r"))
-        (unspec_volatile:V8DI [(match_operand:V8DI 2 "register_operand" "r")]
-            UNSPEC_ST64BV)
+       (unspec_volatile:V8DI [(match_operand:V8DI 2 "register_operand" "r")]
+           UNSPEC_ST64BV)
   )]
   "TARGET_LS64"
   "st64bv\\t%0, %2, [%1]"
 
 (define_insn "st64bv0"
   [(set (match_operand:DI 0 "register_operand" "=r")
-        (unspec_volatile:DI [(const_int 0)] UNSPEC_ST64BV0_RET))
+       (unspec_volatile:DI [(const_int 0)] UNSPEC_ST64BV0_RET))
    (set (mem:V8DI (match_operand:DI 1 "register_operand" "r"))
-        (unspec_volatile:V8DI [(match_operand:V8DI 2 "register_operand" "r")]
-            UNSPEC_ST64BV0)
+       (unspec_volatile:V8DI [(match_operand:V8DI 2 "register_operand" "r")]
+           UNSPEC_ST64BV0)
   )]
   "TARGET_LS64"
   "st64bv0\\t%0, %2, [%1]"