Fix the assembler's floating point number parser so that it can correctly handle...
authorBosco Garc?a <jbgg.gnu@gmail.com>
Thu, 22 Aug 2019 11:54:06 +0000 (12:54 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Aug 2019 11:54:06 +0000 (12:54 +0100)
commita3197745b1edfd711e345b7c94c68be85eb11e48
treec277a5d5c856563d1cd4d64a2e76ce9c5418b0d6
parent43771869e5021b6bdc02b6eaae103a33c05a821c
Fix the assembler's floating point number parser so that it can correctly handle numbers encoded as a leading decimal point, followed by zeroes, followed by a non-zero sequence.

* atof-generic.c (atof_generic): Do not ignore leading zeros if
they appear after a decimal point.
* testsuite/gas/all/float.s: Extend test to include a number with
a leading decimal point followed by several zeroes.
* testsuite/gas/i386/fp.s: Likewise.
* testsuite/gas/i386/fp.d: Update expected output.
gas/ChangeLog
gas/atof-generic.c
gas/testsuite/gas/all/float.s
gas/testsuite/gas/i386/fp.d
gas/testsuite/gas/i386/fp.s