[PATCH v6 4/7] aarch64: Use variadic arguments

Karl Meakin via Sourceware Forge forge-bot@forge-test.rdfm.org
Thu Oct 16 12:13:55 GMT 2025


From: Karl Meakin <karl.meakin@arm.com>

When defining various index enums (eg `vector_type_index`,
`mode_suffix_index`) we are only interested in the name (the first
argument). So all the other arguments to the `DEF_` macro can be ignored
by using `...`.

gcc/ChangeLog:

	* config/aarch64/aarch64-builtins.h (DEF_SIMD_TYPE): Use
	variadic arguments.
	* config/aarch64/aarch64-sve-builtins.h (DEF_SVE_TYPE): Likewise.
	(DEF_SVE_MODE): Likewise.
	(DEF_SVE_NEON_TYPE_SUFFIX): Likewise.
	(DEF_SME_ZA_SUFFIX): Likewise.
	(DEF_SVE_GROUP_SUFFIX): Likewise.
---
 gcc/config/aarch64/aarch64-builtins.h     |  2 +-
 gcc/config/aarch64/aarch64-sve-builtins.h | 14 +++++---------
 2 files changed, 6 insertions(+), 10 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v6-0004-aarch64-Use-variadic-arguments.patch
Type: text/x-patch
Size: 2150 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/test-list/attachments/20251016/324ee028/attachment.bin>


More information about the Test-list mailing list