diff options
author | Naohiro Tamura <naohirot@jp.fujitsu.com> | 2021-05-12 09:26:40 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-05-26 12:01:06 +0100 |
commit | 77d175e14e5f4cf24e9579c03eef5d006a286316 (patch) | |
tree | a7d8a3778d938f830137f537796cd9a06e53d4e5 /sysdeps/aarch64/configure | |
parent | bfbdfe4eabb7514d7c44f3bc161fa8ef4e2ee364 (diff) | |
download | glibc-77d175e14e5f4cf24e9579c03eef5d006a286316.zip glibc-77d175e14e5f4cf24e9579c03eef5d006a286316.tar.gz glibc-77d175e14e5f4cf24e9579c03eef5d006a286316.tar.bz2 |
config: Added HAVE_AARCH64_SVE_ASM for aarch64
This patch checks if assembler supports '-march=armv8.2-a+sve' to
generate SVE code or not, and then define HAVE_AARCH64_SVE_ASM macro.
Diffstat (limited to 'sysdeps/aarch64/configure')
-rw-r--r-- | sysdeps/aarch64/configure | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 83c3a23..4c1fac4 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -304,3 +304,31 @@ fi $as_echo "$libc_cv_aarch64_variant_pcs" >&6; } config_vars="$config_vars aarch64-variant-pcs = $libc_cv_aarch64_variant_pcs" + +# Check if asm support armv8.2-a+sve +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVE support in assembler" >&5 +$as_echo_n "checking for SVE support in assembler... " >&6; } +if ${libc_cv_asm_sve+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat > conftest.s <<\EOF + ptrue p0.b +EOF +if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + libc_cv_aarch64_sve_asm=yes +else + libc_cv_aarch64_sve_asm=no +fi +rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_sve" >&5 +$as_echo "$libc_cv_asm_sve" >&6; } +if test $libc_cv_aarch64_sve_asm = yes; then + $as_echo "#define HAVE_AARCH64_SVE_ASM 1" >>confdefs.h + +fi |