This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AArch64][8/14] ARMv8.2-A FP16 two operands scalar intrinsics


On Wed, Jul 20, 2016 at 06:00:58PM +0100, Jiong Wang wrote:
> On 07/07/16 17:17, Jiong Wang wrote:
> >This patch add ARMv8.2-A FP16 two operands scalar intrinsics.
> 
> The updated patch resolve the conflict with
> 
>    https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00309.html
> 
> The change is to let aarch64_emit_approx_div return false for HFmode.

If you take the change I proposed on patch 3/14 you won't need this.

OK otherwise.

Thanks,
James

> gcc/
> 2016-07-20  Jiong Wang<jiong.wang@arm.com>
> 
>         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
>         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3): New.
>         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
>         (add<mode>3): Likewise.
>         (sub<mode>3): Likewise.
>         (mul<mode>3): Likewise.
>         (div<mode>3): Likewise.
>         (*div<mode>3): Likewise.
>         (<fmaxmin><mode>3): Extend to HF.
>         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return
>         false for HFmode.
>         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
>         (fabd<mode>3): Likewise.
>         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
>         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
>         (aarch64_fmulx<mode>): Likewise.
>         (aarch64_fac<optab><mode>): Likewise.
>         (aarch64_frecps<mode>): Likewise.
>         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
>         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
>         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
>         (VSDQ_HSDI): Support HI.
>         (fcvt_target, FCVT_TARGET): Likewise.
>         * config/aarch64/arm_fp16.h: (vaddh_f16): New.
>         (vsubh_f16): Likewise.
>         (vabdh_f16): Likewise.
>         (vcageh_f16): Likewise.
>         (vcagth_f16): Likewise.
>         (vcaleh_f16): Likewise.
>         (vcalth_f16): Likewise.        (vcleh_f16): Likewise.
>         (vclth_f16): Likewise.
>         (vcvth_n_f16_s16): Likewise.
>         (vcvth_n_f16_s32): Likewise.
>         (vcvth_n_f16_s64): Likewise.
>         (vcvth_n_f16_u16): Likewise.
>         (vcvth_n_f16_u32): Likewise.
>         (vcvth_n_f16_u64): Likewise.
>         (vcvth_n_s16_f16): Likewise.
>         (vcvth_n_s32_f16): Likewise.
>         (vcvth_n_s64_f16): Likewise.
>         (vcvth_n_u16_f16): Likewise.
>         (vcvth_n_u32_f16): Likewise.
>         (vcvth_n_u64_f16): Likewise.
>         (vdivh_f16): Likewise.
>         (vmaxh_f16): Likewise.
>         (vmaxnmh_f16): Likewise.
>         (vminh_f16): Likewise.
>         (vminnmh_f16): Likewise.
>         (vmulh_f16): Likewise.
>         (vmulxh_f16): Likewise.
>         (vrecpsh_f16): Likewise.
>         (vrsqrtsh_f16): Likewise.
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]