diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-08-11 08:34:18 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-08-11 08:34:18 +0200 |
commit | bcd17d4f518dcd9ffa8b2217f3e215df331bfb1b (patch) | |
tree | 72635b13727200fefa81f0e6a89a8cd992915444 /gas/testsuite | |
parent | de133cf98cdf4cb3d1461ef10c83ce72df7399c7 (diff) | |
download | gdb-bcd17d4f518dcd9ffa8b2217f3e215df331bfb1b.zip gdb-bcd17d4f518dcd9ffa8b2217f3e215df331bfb1b.tar.gz gdb-bcd17d4f518dcd9ffa8b2217f3e215df331bfb1b.tar.bz2 |
gas: make 2nd argument of .dcb.* consistently optional
Unlike the forms consuming/producing integer data, the floating point
ones so far required the 2nd argument to be present, contrary to
documentation. To avoid code duplication, split float_length() out of
hex_float() (taking the opportunity to adjust error message wording).
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/all/float.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/float.s b/gas/testsuite/gas/all/float.s index 579ca89..eabb24c 100644 --- a/gas/testsuite/gas/all/float.s +++ b/gas/testsuite/gas/all/float.s @@ -7,16 +7,19 @@ foo: .single 0r1.2345e+06 .dc.s 1 .dc.s 0f:1234 + .dcb.s 1 .dcb.s 1, 1 .dcb.s 1, 0s:4321 .ds.s 1, -1 .dc.d 1 .dc.d 0d:1234 + .dcb.d 1 .dcb.d 1, 1 .dcb.d 1, 0r:4321 .ds.d 1, -1 .dc.x 0x:1234 + .dcb.x 1 .dcb.x 1, 0x:4321 .ds.x 1, -1 |