[GAS][ARM][3/3]Add armv8.2 fp16 scalar instruction support. [Based on SE_H instruction shape for .f16, u16, s16, .16 type specifier]

Renlin Li renlin.li@foss.arm.com
Wed Feb 24 16:39:00 GMT 2016


Hi Nick,

   Skipped all non-elf target, patch updated, OK for trunk?

Regards,
Renlin Li


gas/ChangeLog:

2016-02-24  Renlin Li  <renlin.li@arm.com>

     * config/tc-arm.c (BAD_FP16): New error message macro.
     (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
     fp16 scalar instructions.
     (neon_check_type): Allow different size from key.
     (do_vfp_nsyn_add_sub): Add support SE_H shape support.
     (try_vfp_nsyn): Likewise.
     (do_vfp_nsyn_mla_mls): Likewise.
     (do_vfp_nsyn_fma_fms): Likewise.
     (do_vfp_nsyn_ldm_stm): Likewise
     (do_vfp_nsyn_sqrt): Likewise
     (do_vfp_nsyn_div): Likewise
     (do_vfp_nsyn_nmul): Likewise.
     (do_vfp_nsyn_cmp): Likewise.
     (do_neon_shll): Likewise.
     (do_vfp_nsyn_cvt_fpv8): Likewise.
     (do_neon_cvttb_2): Likewise.
     (do_neon_mov): Likewise.
     (do_neon_rshift_round_imm): Likewise.
     (do_neon_ldr_str): Likewise.
     (do_vfp_nsyn_fpv8): Likewise.
     (do_vmaxnm): Likewise.
     (do_vrint_1): Likewise.
     (insns): New entry for vins, vmovx.
     (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
     * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
     * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
     * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
     * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
     * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
     * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New


On 22/02/16 11:46, Nick Clifton wrote:
> Hi Renlin,
>   
>> diff --git a/gas/testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d b/gas/testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d
>> new file mode 100644
>> index 0000000000000000000000000000000000000000..f196c4a5973874cb4cb29c00aeec3c0f10fc2625
>> --- /dev/null
>> +++ b/gas/testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d
>> @@ -0,0 +1,74 @@
>> +#name: ARM v8.2 FP16 support on scalar (Thumb)
>> +#source: armv8-2-fp16-scalar.s
>> +#objdump: -d
>> +#as: -march=armv8.2-a+fp16 -mfpu=fp-armv8 -mthumb
> Is this new test going to work on PE and COFF based ARM targets ?
>
> Cheers
>    Nick
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb5328.patch
Type: text/x-patch
Size: 50342 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20160224/1b35fbc3/attachment.bin>


More information about the Binutils mailing list