This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Attachment: float16_ieee_generic.txt
Description: float16_ieee_generic.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]