aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-06-16 08:55:52 +0200
committerJan Beulich <jbeulich@suse.com>2021-06-16 08:55:52 +0200
commitbb32eac5a90b2b141fed4ce490aded74134f1d75 (patch)
tree9c3a5e48cee0a436229e28481ce896ca3c10d109 /gas/testsuite
parent4504a6346777d544a144683bd2a534b686fbac41 (diff)
downloadgdb-bb32eac5a90b2b141fed4ce490aded74134f1d75.zip
gdb-bb32eac5a90b2b141fed4ce490aded74134f1d75.tar.gz
gdb-bb32eac5a90b2b141fed4ce490aded74134f1d75.tar.bz2
gas: fix hex float parsing from .dcb.? directives
Unlike for .dc.? the parsing here failed to skip the colon before calling hex_float(). To avoid both variants of parsing going out of sync again, introduce a helper used by both.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/all/float.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/float.s b/gas/testsuite/gas/all/float.s
index 902914f..579ca89 100644
--- a/gas/testsuite/gas/all/float.s
+++ b/gas/testsuite/gas/all/float.s
@@ -4,3 +4,19 @@ foo: .single 0r1.2345e+06
.double 0r2.718282
.double .0000000000000000000001
.double 1e-22
+
+ .dc.s 1
+ .dc.s 0f:1234
+ .dcb.s 1, 1
+ .dcb.s 1, 0s:4321
+ .ds.s 1, -1
+
+ .dc.d 1
+ .dc.d 0d:1234
+ .dcb.d 1, 1
+ .dcb.d 1, 0r:4321
+ .ds.d 1, -1
+
+ .dc.x 0x:1234
+ .dcb.x 1, 0x:4321
+ .ds.x 1, -1