[Ping] [Patch, AArch64] Add support for hexadecimal-form floating-point immediate

Yufeng Zhang Yufeng.Zhang@arm.com
Thu Nov 22 17:13:00 GMT 2012


Ping~

On 11/05/12 19:19, Yufeng Zhang wrote:
> Hi,
>
> This patch adds to the AArch64 GAS the support for the floating-point
> immediate as a string beginning “0x” followed by the hexadecimal
> representation of its IEEE754 encoding.  This kind of fp immediate can
> appear as the 2nd operand of any of the following instructions:
>
> FMOV Sd, #fpimm
> FMOV Dd, #fpimm
> FMOV Vn.<T>, #fpimm
>
> OK to commit?
>
>
> Thanks,
> Yufeng
>
>
>
> include/opcode/
>
> 2012-11-05  Yufeng Zhang<yufeng.zhang@arm.com>
>
> 	* aarch64.h (aarch64_get_sp_fp_enc): New function declaration.
> 	(aarch64_get_dp_fp_enc): Ditto.
> 	(aarch64_get_sp_fp_from_enc): Ditto.
> 	(aarch64_get_dp_fp_from_enc): Ditto.
>
> opcodes/
>
> 2012-11-05  Yufeng Zhang<yufeng.zhang@arm.com>
>
> 	* aarch64-opc.c (aarch64_get_sp_fp_enc): New function.
> 	(aarch64_get_dp_fp_enc): Ditto.
> 	(aarch64_get_sp_fp_from_enc): Ditto.
> 	(aarch64_get_dp_fp_from_enc): Ditto.
> 	(aarch64_print_operand): Update.
>
> gas/
>
> 2012-11-05  Yufeng Zhang<yufeng.zhang@arm.com>
>
> 	* config/tc-aarch64.c (parse_aarch64_imm_float): Add parameter 'dp_p';
> 	handle hexadecimal representation of IEEE754 encoding.
> 	(parse_operands): Update the call to parse_aarch64_imm_float.
>
> gas/testsuite/
>
> 2012-11-05  Yufeng Zhang<yufeng.zhang@arm.com>
>
> 	* gas/aarch64/diagnostic.s: Add test.
> 	* gas/aarch64/diagnostic.l: Update.
> 	* gas/aarch64/illegal.s: Add test.
> 	* gas/aarch64/illegal.l: Update.
> 	* gas/aarch64/fpmov.s: New file.
> 	* gas/aarch64/fpmov.d: New file.




More information about the Binutils mailing list