diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-06-16 08:55:52 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-06-16 08:55:52 +0200 |
commit | bb32eac5a90b2b141fed4ce490aded74134f1d75 (patch) | |
tree | 9c3a5e48cee0a436229e28481ce896ca3c10d109 /gas/testsuite | |
parent | 4504a6346777d544a144683bd2a534b686fbac41 (diff) | |
download | gdb-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.s | 16 |
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 |