diff mbox series

[v2,3/4] arm: [MVE intrinsics] fix store shape to support tuples

Message ID 20241209150532.2174817-4-christophe.lyon@linaro.org
State New
Headers show
Series arm: [MVE intrinsics] Rework intrinsics for loads/stores/ tuples | expand

Commit Message

Christophe Lyon Dec. 9, 2024, 3:05 p.m. UTC
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc
index 58ea2f5b988..5b45ee2f465 100644
--- a/gcc/config/arm/arm-mve-builtins-shapes.cc
+++ b/gcc/config/arm/arm-mve-builtins-shapes.cc
@@ -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);