]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Do not allow SIMD clones with simdlen 1 [PR113552]
authorTamar Christina <tamar.christina@arm.com>
Mon, 15 Apr 2024 11:11:48 +0000 (12:11 +0100)
committerTamar Christina <tamar.christina@arm.com>
Mon, 15 Apr 2024 11:11:48 +0000 (12:11 +0100)
commit1e08e39c743692afdd5d3546b2223474beac1dbc
treef9fdfb99eef4b9b7fac0d682280b7b3f72911a65
parentee1814a139c7d0d86b2e5127b2f99da2e2d6320a
AArch64: Do not allow SIMD clones with simdlen 1 [PR113552]

This is a backport of g:306713c953d509720dc394c43c0890548bb0ae07.

The AArch64 vector PCS does not allow simd calls with simdlen 1,
however due to a bug we currently do allow it for num == 0.

This causes us to emit a symbol that doesn't exist and we fail to link.

gcc/ChangeLog:

PR tree-optimization/113552
* config/aarch64/aarch64.cc
(aarch64_simd_clone_compute_vecsize_and_simdlen): Block simdlen 1.

gcc/testsuite/ChangeLog:

PR tree-optimization/113552
* gcc.target/aarch64/pr113552.c: New test.
* gcc.target/aarch64/simd_pcs_attribute-3.c: Remove bogus check.
gcc/config/aarch64/aarch64.cc
gcc/testsuite/gcc.target/aarch64/pr113552.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/simd_pcs_attribute-3.c