Christophe Lyon 4f4e13dd23 arm: [MVE intrinsics] rework vst2q vst4q vld2q vld4q
Implement vst2q, vst4q, vld2q and vld4q using the new MVE builtins
framework.

Since MVE uses different tuple modes than Neon, we need to use
VALID_MVE_STRUCT_MODE because VALID_NEON_STRUCT_MODE is no longer a
super-set of it, for instance in output_move_neon and
arm_print_operand_address.

In arm_hard_regno_mode_ok, the change is similar but a bit more
intrusive.

Expand the VSTRUCT iterator, so that mov<mode> and neon_mov<mode>
patterns from neon.md still work for MVE.

Besides the small updates to the patterns in mve.md, we have to update
vec_load_lanes and vec_store_lanes in vec-common.md so that the
vectorizer can handle the new modes. These patterns are now different
from Neon's, so maybe we should move them back to neon.md and mve.md

The patch adds arm_array_mode, which is used by build_array_type_nelts
and makes it possible to support the new assert in
register_builtin_tuple_types.

gcc/ChangeLog:

	* config/arm/arm-mve-builtins-base.cc (class vst24_impl): New.
	(class vld24_impl): New.
	(vld2q, vld4q, vst2q, vst4q): New.
	* config/arm/arm-mve-builtins-base.def (vld2q, vld4q, vst2q)
	(vst4q): New.
	* config/arm/arm-mve-builtins-base.h (vld2q, vld4q, vst2q, vst4q):
	New.
	* config/arm/arm-mve-builtins.cc (register_builtin_tuple_types):
	Add more asserts.
	* config/arm/arm.cc (TARGET_ARRAY_MODE): New.
	(output_move_neon): Handle MVE struct modes.
	(arm_print_operand_address): Likewise.
	(arm_hard_regno_mode_ok): Likewise.
	(arm_array_mode): New.
	* config/arm/arm.h (VALID_MVE_STRUCT_MODE): Likewise.
	* config/arm/arm_mve.h (vst4q): Delete.
	(vst2q): Delete.
	(vld2q): Delete.
	(vld4q): Delete.
	(vst4q_s8): Delete.
	(vst4q_s16): Delete.
	(vst4q_s32): Delete.
	(vst4q_u8): Delete.
	(vst4q_u16): Delete.
	(vst4q_u32): Delete.
	(vst4q_f16): Delete.
	(vst4q_f32): Delete.
	(vst2q_s8): Delete.
	(vst2q_u8): Delete.
	(vld2q_s8): Delete.
	(vld2q_u8): Delete.
	(vld4q_s8): Delete.
	(vld4q_u8): Delete.
	(vst2q_s16): Delete.
	(vst2q_u16): Delete.
	(vld2q_s16): Delete.
	(vld2q_u16): Delete.
	(vld4q_s16): Delete.
	(vld4q_u16): Delete.
	(vst2q_s32): Delete.
	(vst2q_u32): Delete.
	(vld2q_s32): Delete.
	(vld2q_u32): Delete.
	(vld4q_s32): Delete.
	(vld4q_u32): Delete.
	(vld4q_f16): Delete.
	(vld2q_f16): Delete.
	(vst2q_f16): Delete.
	(vld4q_f32): Delete.
	(vld2q_f32): Delete.
	(vst2q_f32): Delete.
	(__arm_vst4q_s8): Delete.
	(__arm_vst4q_s16): Delete.
	(__arm_vst4q_s32): Delete.
	(__arm_vst4q_u8): Delete.
	(__arm_vst4q_u16): Delete.
	(__arm_vst4q_u32): Delete.
	(__arm_vst2q_s8): Delete.
	(__arm_vst2q_u8): Delete.
	(__arm_vld2q_s8): Delete.
	(__arm_vld2q_u8): Delete.
	(__arm_vld4q_s8): Delete.
	(__arm_vld4q_u8): Delete.
	(__arm_vst2q_s16): Delete.
	(__arm_vst2q_u16): Delete.
	(__arm_vld2q_s16): Delete.
	(__arm_vld2q_u16): Delete.
	(__arm_vld4q_s16): Delete.
	(__arm_vld4q_u16): Delete.
	(__arm_vst2q_s32): Delete.
	(__arm_vst2q_u32): Delete.
	(__arm_vld2q_s32): Delete.
	(__arm_vld2q_u32): Delete.
	(__arm_vld4q_s32): Delete.
	(__arm_vld4q_u32): Delete.
	(__arm_vst4q_f16): Delete.
	(__arm_vst4q_f32): Delete.
	(__arm_vld4q_f16): Delete.
	(__arm_vld2q_f16): Delete.
	(__arm_vst2q_f16): Delete.
	(__arm_vld4q_f32): Delete.
	(__arm_vld2q_f32): Delete.
	(__arm_vst2q_f32): Delete.
	(__arm_vst4q): Delete.
	(__arm_vst2q): Delete.
	(__arm_vld2q): Delete.
	(__arm_vld4q): Delete.
	* config/arm/arm_mve_builtins.def (vst4q, vst2q, vld4q, vld2q):
	Delete.
	* config/arm/iterators.md (VSTRUCT): Add V2x16QI, V2x8HI, V2x4SI,
	V2x8HF, V2x4SF, V4x16QI, V4x8HI, V4x4SI, V4x8HF, V4x4SF.
	(MVE_VLD2_VST2, MVE_vld2_vst2, MVE_VLD4_VST4, MVE_vld4_vst4): New.
	* config/arm/mve.md (mve_vst4q<mode>): Update into ...
	(@mve_vst4q<mode>): ... this.
	(mve_vst2q<mode>): Update into ...
	(@mve_vst2q<mode>): ... this.
	(mve_vld2q<mode>): Update into ...
	(@mve_vld2q<mode>): ... this.
	(mve_vld4q<mode>): Update into ...
	(@mve_vld4q<mode>): ... this.
	* config/arm/vec-common.md (vec_load_lanesoi<mode>) Remove MVE
	support.
	(vec_load_lanesxi<mode>): Likewise.
	(vec_store_lanesoi<mode>): Likewise.
	(vec_store_lanesxi<mode>): Likewise.
	(vec_load_lanes<MVE_vld2_vst2><mode>):
	New.
	(vec_store_lanes<MVE_vld2_vst2><mode>): New.
	(vec_load_lanes<MVE_vld4_vst4><mode>): New.
	(vec_store_lanes<MVE_vld4_vst4><mode>): New.
2024-12-13 14:25:35 +00:00
2024-11-26 00:19:26 +00:00
2024-12-11 00:19:28 +00:00
2024-11-24 00:18:09 +00:00
2024-11-19 00:19:52 +00:00
2024-11-30 00:20:11 +00:00
2024-12-09 00:17:22 +00:00
2024-12-13 00:19:02 +00:00
2024-12-11 00:19:28 +00:00
2024-11-21 00:20:27 +00:00
2024-12-11 00:19:28 +00:00
2024-12-10 00:19:34 +00:00
2024-12-12 00:19:00 +00:00
2024-11-19 00:19:52 +00:00
2024-11-19 00:19:52 +00:00
2024-11-26 00:19:26 +00:00
2024-11-19 00:19:52 +00:00
2024-12-04 00:21:20 +00:00
2024-12-12 00:19:00 +00:00
2024-11-19 12:27:33 +01:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 1.5 GiB
Languages
C++ 30.7%
C 30%
Ada 14.5%
D 6.1%
Go 5.7%
Other 12.5%