[binutils-gdb] aarch64: Fix overly lax +frintts dependency
Andrew Carlotti
acarlotti@sourceware.org
Fri Jan 31 15:18:48 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0fad7627cf886c5d93c526b2b9d203b3e51e8513
commit 0fad7627cf886c5d93c526b2b9d203b3e51e8513
Author: Andrew Carlotti <andrew.carlotti@arm.com>
Date: Thu Jan 30 18:35:14 2025 +0000
aarch64: Fix overly lax +frintts dependency
We agreed with LLVM that +frintts should only enable +fp, not +simd.
This also matches the dependency used in GCC.
Diff:
---
gas/config/tc-aarch64.c | 2 +-
gas/doc/c-aarch64.texi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 8b074ff22dd..b79af4044ff 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -10695,7 +10695,7 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
{"rcpc2", AARCH64_FEATURE (RCPC2), AARCH64_FEATURE (RCPC)},
{"dotprod", AARCH64_FEATURE (DOTPROD), AARCH64_FEATURE (SIMD)},
{"sha2", AARCH64_FEATURE (SHA2), AARCH64_FEATURE (SIMD)},
- {"frintts", AARCH64_FEATURE (FRINTTS), AARCH64_FEATURE (SIMD)},
+ {"frintts", AARCH64_FEATURE (FRINTTS), AARCH64_FEATURE (FP)},
{"sb", AARCH64_FEATURE (SB), AARCH64_NO_FEATURES},
{"predres", AARCH64_FEATURE (PREDRES), AARCH64_NO_FEATURES},
{"predres2", AARCH64_FEATURE (PREDRES2), AARCH64_FEATURE (PREDRES)},
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 76f65d7c3f9..5d0aac8fe0a 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -205,7 +205,7 @@ automatically cause those extensions to be disabled.
@tab Enable Armv8.2 16-bit floating-point multiplication variant support.
@item @code{fp16} @tab @code{fp}
@tab Enable Armv8.2 16-bit floating-point support.
-@item @code{frintts} @tab @code{simd}
+@item @code{frintts} @tab @code{fp}
@tab Enable floating-point round to integral value instructions.
@item @code{gcs} @tab
@tab Enable the Guarded Control Stack Extension.
More information about the Binutils-cvs
mailing list