aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorBarnaby Wilks <barnaby.wilks@arm.com>2019-08-22 11:13:23 +0100
committerNick Clifton <nickc@redhat.com>2019-08-22 11:13:23 +0100
commitb20d385926d84f7daa8cd7c54f748f3d6a81bfc6 (patch)
treeb1c5502cd2b83ecc951d43912a012fbca3aa1276 /gas/doc
parenta051e2f3e0c1cedf4be0e1fedcd383fd203c769c (diff)
downloadgdb-b20d385926d84f7daa8cd7c54f748f3d6a81bfc6.zip
gdb-b20d385926d84f7daa8cd7c54f748f3d6a81bfc6.tar.gz
gdb-b20d385926d84f7daa8cd7c54f748f3d6a81bfc6.tar.bz2
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.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/c-aarch64.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 5c66fa6..2c236e2 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -358,6 +358,14 @@ The @code{.even} directive aligns the output on the next even byte
boundary.
@c FFFFFFFFFFFFFFFFFFFFFFFFFF
+
+@cindex @code{.float16} directive, AArch64
+@item .float16 @var{value [,...,value_n]}
+Place the half precision floating point representation of one or more
+floating-point values into the current section.
+The format used to encode the floating point values is always the
+IEEE 754-2008 half precision floating point format.
+
@c GGGGGGGGGGGGGGGGGGGGGGGGGG
@c HHHHHHHHHHHHHHHHHHHHHHHHHH
@c IIIIIIIIIIIIIIIIIIIIIIIIII