]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[AArch64][PATCH 2/3] Adjust a utility function for floating point values.
authorMatthew Wahab <matthew.wahab@arm.com>
Fri, 27 Nov 2015 16:25:52 +0000 (16:25 +0000)
committerMatthew Wahab <matthew.wahab@arm.com>
Mon, 14 Dec 2015 13:26:57 +0000 (13:26 +0000)
commit43ca89ce59c515b8ced5185763930a81b987e492
treee899c2a0d81d05688b6eb39dddd7df7b8654a6f1
parent39be7778730799a3d505fb90b0a0e4e7fa0ab5a2
[AArch64][PATCH 2/3] Adjust a utility function for floating point values.

ARMv8.2 adds 16-bit floating point operations as an optional
extension. This patch adjusts the utility function expand_fp_imm to
support 16-bit values.

The function is intended to convert an 8-bit immediate representing a
floating point value to a representation that can be passed to
fprintf. Because of the limited use of the results, the only change made
to the function is to treat a request for a 16-bit float as a request
for a 32-bit float.

opcodes/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

* aarch64-opc.c (half_conv_t): New.
(expand_fp_imm): Replace is_dp flag with the parameter size to
specify the number of bytes for the required expansion.  Treat
a 16-bit expansion like a 32-bit expansion.  Add check for an
unsupported size request.  Update comment.
(aarch64_print_operand): Update to support 16-bit floating point
values.  Update for changes to expand_fp_imm.

Change-Id: I1ae3df3864be375d71925197ab03397ed1ad2d15
opcodes/ChangeLog
opcodes/aarch64-opc.c