aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2024-01-12 01:43:17 +0000
committerNick Clifton <nickc@redhat.com>2024-01-12 13:46:35 +0000
commitce9fad9878a28db62e2ce7dabbf250f7513e594d (patch)
treee1caf9db1093b3326aebb13e1cdf4eb883242b6f /gas
parent227af30e49d775ca8e1663a25ecd120454ad5398 (diff)
downloadgdb-ce9fad9878a28db62e2ce7dabbf250f7513e594d.zip
gdb-ce9fad9878a28db62e2ce7dabbf250f7513e594d.tar.gz
gdb-ce9fad9878a28db62e2ce7dabbf250f7513e594d.tar.bz2
aarch64: Add +frintts flag for existing instructions
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-aarch64.c1
-rw-r--r--gas/testsuite/gas/aarch64/armv8_5-a-flagm2.d11
-rw-r--r--gas/testsuite/gas/aarch64/armv8_5-a-flagm2.s3
-rw-r--r--gas/testsuite/gas/aarch64/armv8_5-a-frintts.d (renamed from gas/testsuite/gas/aarch64/armv8_5-a-dp.d)3
-rw-r--r--gas/testsuite/gas/aarch64/armv8_5-a-frintts.s (renamed from gas/testsuite/gas/aarch64/armv8_5-a-dp.s)2
5 files changed, 16 insertions, 4 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index b77b160..9df0e3b 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -10288,6 +10288,7 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
{"rcpc", AARCH64_FEATURE (RCPC), AARCH64_NO_FEATURES},
{"dotprod", AARCH64_FEATURE (DOTPROD), AARCH64_FEATURE (SIMD)},
{"sha2", AARCH64_FEATURE (SHA2), AARCH64_FEATURE (FP)},
+ {"frintts", AARCH64_FEATURE (FRINTTS), AARCH64_FEATURE (SIMD)},
{"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/testsuite/gas/aarch64/armv8_5-a-flagm2.d b/gas/testsuite/gas/aarch64/armv8_5-a-flagm2.d
new file mode 100644
index 0000000..83361e0
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/armv8_5-a-flagm2.d
@@ -0,0 +1,11 @@
+#as: -march=armv8.5-a
+# objdump: -d
+
+.*: .*
+
+
+Disassembly of section \.text:
+
+0+0 <func>:
+.*: d500403f xaflag
+.*: d500405f axflag
diff --git a/gas/testsuite/gas/aarch64/armv8_5-a-flagm2.s b/gas/testsuite/gas/aarch64/armv8_5-a-flagm2.s
new file mode 100644
index 0000000..7e7929c
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/armv8_5-a-flagm2.s
@@ -0,0 +1,3 @@
+func:
+ xaflag
+ axflag
diff --git a/gas/testsuite/gas/aarch64/armv8_5-a-dp.d b/gas/testsuite/gas/aarch64/armv8_5-a-frintts.d
index d066754..5bc98fc 100644
--- a/gas/testsuite/gas/aarch64/armv8_5-a-dp.d
+++ b/gas/testsuite/gas/aarch64/armv8_5-a-frintts.d
@@ -1,4 +1,5 @@
#as: -march=armv8.5-a
+#as: -march=armv8-a+frintts
# objdump: -d
.*: .*
@@ -7,8 +8,6 @@
Disassembly of section \.text:
0+0 <func>:
-.*: d500403f xaflag
-.*: d500405f axflag
.*: 1e284041 frint32z s1, s2
.*: 1e684062 frint32z d2, d3
.*: 1e28c041 frint32x s1, s2
diff --git a/gas/testsuite/gas/aarch64/armv8_5-a-dp.s b/gas/testsuite/gas/aarch64/armv8_5-a-frintts.s
index ecc9244..96d8007 100644
--- a/gas/testsuite/gas/aarch64/armv8_5-a-dp.s
+++ b/gas/testsuite/gas/aarch64/armv8_5-a-frintts.s
@@ -13,7 +13,5 @@
.endr
.endm
func:
- xaflag
- axflag
expand frint,0
expand frint,1