This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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][PATCH 3/3] Add floating-point FP16 instructions


Committed: https://sourceware.org/ml/binutils-cvs/2015-11/msg00169.html

Is this ok for the 2.26 branch?
Matthew

On 24/11/15 11:55, Matthew Wahab wrote:
Hello,

ARMv8.2 adds 16-bit floating point operations as an optional extension
to the ARMv8 FP support. This patch adds the new FP16 instructions,
making them available when the architecture extension +fp+fp16 is
specified.

The instructions added are:

- Comparisons and conditionals: FCMP, FCCMPE, FCMP, FCMPE and FCSEL.
- Arithmetic: FABS, FNEG, FSQRT, FMUL, FDIV, FADD, FSUB, FMADD, FMSUB,
   FNMADD and FNMSUB.
- Rounding: FRINTN, FRINTP, FRINTM, FRINTZ, FRINTA, FRINTX and FRINTI.
- Conversions: SCVTF (fixed-point), SCVTF (integer), UCVTF (fixed-point)
   UCVTF (integer), FCVTZS (fixed-point), FCVTZS (integer), FCVTZU
   (fixed-point), FCVTZU (integer), FCVTNS, FCVTNU, FCVTAS, FCVTAU,
   FCVTPS, FCVTPU, FCVTMS and  FCVTMU.
- Scalar FMOV: immediate, general and register

Tested the series for aarch64-none-linux gnu with cross-compiled
check-binutils and check-gas.

Ok for trunk?
Matthew

gas/testsuite/
2015-11-24  Matthew Wahab  <matthew.wahab@arm.com>

     * gas/aarch64/float-fp16.d: New.
     * gas/aarch64/float-fp16.s: New.

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

     * aarch64-asm-2.c: Regenerate.
     * aarch64-dis-2.c: Regenerate.
     * aarch64-opc-2.c: Regenerate.
     * aarch64-tbl.h (QL_FIX2FP_H, QL_FP2FIX_H): New.
     (QL_INT2FP_H, QL_FP2INT_H): New.
     (QL_FP2_H, QL_FP3_H, QL_FP4_H): New
     (QL_DST_H): New.
     (QL_FCCMP_H): New.
     (aarch64_opcode_table): Add 16-bit variants of scvt, ucvtf,
     fcvtzs, fcvtzu, fcvtns, fcvtnu, scvtf, ucvtf, fcvtas, fcvtau,
     fmov, fcvtpos, fcvtpu, fcvtms, fcvtmu, fcvtzs, fcvtzu, fccmp,
     fccmpe, fcmp, fcmpe, fabs, fneg, fsqrt, frintn, frintp, frintm,
     frintz, frinta, frintx, frinti, fmul, fdiv, fadd, fsub, fmax,
     fmin, fmaxnm, fminnm, fnmul, fmadd, fmsub, fnmadd, fnmsub and
     fcsel.



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