]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Tweak error message for (tuple,vector) pairs
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 5 Dec 2023 10:11:22 +0000 (10:11 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 5 Dec 2023 10:11:22 +0000 (10:11 +0000)
commit5ce2e22b7e02c7fbd1ab8145b632559b67ae9958
tree923fe855495fe48ad01c951bc496fa43a09a05b3
parent1f7f076ad6293cad19d35efdf726eb48cf78e3dd
aarch64: Tweak error message for (tuple,vector) pairs

SME2 adds more intrinsics that take a tuple of vectors followed
by a single vector, with the two arguments expected to have the
same element type.  Unlike with the existing svset* intrinsics,
the size of the tuple is not fixed by the overloaded function name.

This patch adds an error message that (hopefully) copes better
with that combination.

gcc/
* config/aarch64/aarch64-sve-builtins.cc
(function_resolver::require_derived_vector_type): Add a specific
error message for the case in which the caller wants a single
vector whose element type matches a previous tuyple argument.

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general-c/set_1.c: Tweak expected
error message.
* gcc.target/aarch64/sve/acle/general-c/set_3.c: Likewise.
* gcc.target/aarch64/sve/acle/general-c/set_5.c: Likewise.
gcc/config/aarch64/aarch64-sve-builtins.cc
gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/set_1.c
gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/set_3.c
gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/set_5.c