]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Float16: Fix test failures for non ELF targets
authorBarnaby Wilks <Barnaby.Wilks@arm.com>
Thu, 15 Aug 2019 16:21:59 +0000 (16:21 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 19 Aug 2019 00:23:22 +0000 (09:53 +0930)
commit72c03e30ae783a5f38a8c124588a4536ae06e6ef
tree9ddd9dfec942846c67c1d7fe4f99676d2770ad9d
parent2c115c4f3cb57cfed7a1be5bbccf0f1bc6f7fdbc
Float16: Fix test failures for non ELF targets

The tests were failing due to md_atof trying to do word-wise endian
switching on the float16 (for little-endian targets sometimes
multi word values have their word order changed).
However since a float16 is only 1 word wide, it would end up writing
incorrect data, as you cannot switch the word order of just one word.

* config/tc-arm.c (md_atof): Add precision check.  Formatting.
gas/ChangeLog
gas/config/tc-arm.c