[PATCH][GAS][ARM] Assembeler and disassembler support for new FP16 instructions [Patch (3/3)]
Tamar Christina
tamar.christina@arm.com
Wed Nov 8 10:08:00 GMT 2017
Hi All,
This patch add assembler and disassembler support for new FP16 instructions
introduced in Armv8.4-A and back-ported as optional extensions from Armv8.2-A.
These new instructions also require FP16 extension enabled.
For example, the support can be enabled through the following option:
-march=armv8.2-a+fp16".
Checked with check-gas on arm-none-eabi, armeb-none-eabi, no regressions.
Ok for master?
Ps. I do not have commit access so if OK can someone apply for me?
Thanks,
Tamar
gas/
2017-11-08 Jiong Wang <jiong.wang@arm.com>
Tamar Christina <tamar.christina@arm.com>
* config/tc-arm.c (arm_ext_v8_2): New variable.
(enum arm_reg_type): New enumeration REG_TYPE_NSD.
(reg_expected_msgs): New entry for REG_TYPE_NSD.
(parse_typed_reg_or_scalar): Handle REG_TYPE_NSD.
(parse_scalar): Support REG_TYPE_VFS.
(enum operand_parse_code): New enumerations OP_RNSD and OP_RNSD_RNSC.
(parse_operands): Handle OP_RNSD and OP_RNSD_RNSC.
(NEON_SHAPE_DEF): New entries for DHH and DHS.
(neon_scalar_for_fmac_fp16_long): New function to generate Rm encoding
for new FP16 instructions in ARMv8.2-A.
(do_neon_fmac_maybe_scalar_long): New function to encode new FP16
instructions in ARMv8.2-A.
(do_neon_vfmal): Wrapper function for vfmal.
(do_neon_vfmsl): Wrapper function for vfmsl.
(insns): New entries for vfmal and vfmsl.
* testsuite/gas/arm/armv8_2-a-fp16.s: New test source.
* testsuite/gas/arm/armv8_2-a-fp16-illegal.s: New test source.
* testsuite/gas/arm/armv8_2-a-fp16.d: New test.
* testsuite/gas/arm/armv8_3-a-fp16.d: New test.
* testsuite/gas/arm/armv8_4-a-fp16.d: New test.
* testsuite/gas/arm/armv8_2-a-fp16-thumb2.d: New test.
* testsuite/gas/arm/armv8_2-a-fp16-illegal.d: New test.
* testsuite/gas/arm/armv8_2-a-fp16-illegal.l: New error file.
opcodes/
2017-11-08 Jiong Wang <jiong.wang@arm.com>
Tamar Christina <tamar.christina@arm.com>
* arm-dis.c (coprocessor_opcodes): New entries for ARMv8.2-A new FP16
instructions, including vfmal.f16 and vfmsl.f16.
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: content.patch
Type: text/x-diff
Size: 53255 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171108/5022c5cd/attachment.bin>
More information about the Binutils
mailing list