[PATCH][binutils][1/3] Generic support for IEEE 754 floating point numbers.

Barnaby Wilks Barnaby.Wilks@arm.com
Thu Jul 11 15:27:00 GMT 2019


Hello,

This is part of a patch series that implements a directive for 
assembling 16-bit floating point constants for Arm and AArch64.

This patch contains generic support for half-precision IEEE 754 floating 
point numbers that applies for any
target.

Half precision floating point numbers will be encoded using the IEEE 754 
half precision floating point
format - 16 bits in total, 1 for sign, 5 for exponent and 10 bits of 
mantissa.

Cross compiled and regtested on aarch64-none-elf, 
aarch64-none-linux-gnu, arm-none-eabi and arm-none-linux-gnueabihf.

I don't have write access, so if it's OK then could someone commit on my 
behalf?

Thanks,
Barney

gas/ChangeLog:

2019-07-11 Barnaby Wilks <barnaby.wilks@arm.com>

* config/atof-ieee.c (H_PRECISION): Macro for precision of float16 type.
(atof_ieee): Set precision and exponent bits for encoding float16 types.
(gen_to_words): NaN and Infinity encoding for float16.
(ieee_md_atof): Set precision for encoding float16 type.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: float16_ieee_generic.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20190711/b6290ec6/attachment.txt>


More information about the Binutils mailing list