aarch64: fix check for SVE support in assembler
commit73c26018ed0ecd9c807bb363cc2c2ab4aca66a82
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 13 Mar 2024 14:34:14 +0000 (13 14:34 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 14 Mar 2024 14:27:56 +0000 (14 14:27 +0000)
tree3ffed8d805467423965228912339a251bceb7f76
parent2367bf468ce43801de987dcd54b0f99ba9d62827
aarch64: fix check for SVE support in assembler

Due to GCC bug 110901 -mcpu can override -march setting when compiling
asm code and thus a compiler targetting a specific cpu can fail the
configure check even when binutils gas supports SVE.

The workaround is that explicit .arch directive overrides both -mcpu
and -march, and since that's what the actual SVE memcpy uses the
configure check should use that too even if the GCC issue is fixed
independently.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/aarch64/configure [changed mode: 0644->0755]
sysdeps/aarch64/configure.ac