]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: [MVE intrinsics] fix store shape to support tuples
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 13 Nov 2024 15:31:21 +0000 (15:31 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 13 Dec 2024 14:25:35 +0000 (14:25 +0000)
Now that tuples are properly supported, we can update the store shape, to expect
"t0" instead of "v0" as last argument.

gcc/ChangeLog:

* config/arm/arm-mve-builtins-shapes.cc (struct store_def): Add
support for tuples.

gcc/config/arm/arm-mve-builtins-shapes.cc

index 58ea2f5b988f3caa714f0bcec3559aa4dca67a9b..5b45ee2f46574fa6abd0b889b1e4562a5a7649fc 100644 (file)
@@ -1701,7 +1701,7 @@ struct store_def : public overloaded_base<0>
         bool preserve_user_namespace) const override
   {
     b.add_overloaded_functions (group, MODE_none, preserve_user_namespace);
-    build_all (b, "_,as,v0", group, MODE_none, preserve_user_namespace);
+    build_all (b, "_,as,t0", group, MODE_none, preserve_user_namespace);
   }
 
   tree
@@ -1713,7 +1713,7 @@ struct store_def : public overloaded_base<0>
     type_suffix_index type;
     if (!r.check_gp_argument (2, i, nargs)
        || !r.require_pointer_type (0)
-       || (type = r.infer_vector_type (1)) == NUM_TYPE_SUFFIXES)
+       || (type = r.infer_tuple_type (1)) == NUM_TYPE_SUFFIXES)
       return error_mark_node;
 
     return r.resolve_to (r.mode_suffix_id, type);