Implement a float16 directive for assembling 16 bit IEEE 754 floating point numbers...
authorBarnaby Wilks <barnaby.wilks@arm.com>
Thu, 22 Aug 2019 10:13:23 +0000 (11:13 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Aug 2019 10:13:23 +0000 (11:13 +0100)
commitb20d385926d84f7daa8cd7c54f748f3d6a81bfc6
treeb1c5502cd2b83ecc951d43912a012fbca3aa1276
parenta051e2f3e0c1cedf4be0e1fedcd383fd203c769c
Implement a float16 directive for assembling 16 bit IEEE 754 floating point numbers for the AArch64 assembler.

The syntax of the directive is:

     .float16 <0-n decimal numbers>
e.g.
     .float16 0.5
     .float16 10.2, NaN, 452.09

The floats will always be encoded using the binary16 format as described in the
IEEE 754-2008 standard. There is no need to support Arm's alternative half-precision
format since AArch64 only supports the IEEE format.

gas * config/tc-aarch64.c: Add float16 directive and add "Hh" to
acceptable float characters.
* doc/c-aarch64.texi: Documentation for float16 directive.
* testsuite/gas/aarch64/float16-be.d: New test.
* testsuite/gas/aarch64/float16-le.d: New test.
* testsuite/gas/aarch64/float16.s: New test.
* NEWS: Add NEWS entry.
gas/ChangeLog
gas/NEWS
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi
gas/testsuite/gas/aarch64/float16-be.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/float16-le.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/float16.s [new file with mode: 0644]