https://bugs.kde.org/show_bug.cgi?id=529076
Bug ID: 529076
Summary: ARMv8.2 Half-Precision Floating-Point (FP16)
Classification: Developer tools
Product: valgrind
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: vex
Assignee: [email protected]
Reporter: [email protected]
Blocks: 528707
Target Milestone: ---
FEAT_FP16 (Armv8.2, OPTIONAL) adds half-precision (16-bit, IEEE 754 binary16)
floating-point data processing instructions. These are 16bit (h, half
precision) variants of various arithmetic operation variants, for which there
is already 32bit (s, single precision) and 64bit (d, double precision) support.
Some instructions have already been implemented:
FADD, FADDP, FABD, FABS, FNEG, FSQRT, FCMEQ, FCMGT, FCMLT, FCMLE, FCMGE, FACGE,
FACGT, FCCMP, FCMPE and FMOV.
commit f337256b202c176aee065aa5f8a03d722206c580
arm64: add support for FCVT{N,M,A,P,Z}{S,U} d_d, s_s, FCVTN 4h/8h_4s, 2s/4s_2d,
FCVTL 4s_4h/8h, 2d_2s/4s, FCVT Sd, Hn, FCVT Dd, Hn, FCVT Hd, Sn, FCVT Hd, Dn
commit 3b1710d38cf19619242c9113a2dbe291e914a8c2
regression test does not check for Arm 64 features (ADDP h)
Bug #413547
commit 8fa9e36f7c269563feebbf41a7a658bc7879ad39
Complete arm64 FADDP v8.2 instruction support
Bug #431556
commit 7593a4773997807695d6514e9d01a60cb489851c
Addition of arm64 v8.2 FADDP, FNEG and FSQRT
Bug #432161
commit 3ac86151404e6d018473dc3f6cd8b933be1ee038
Added arm64 v8.2 scalar FABD, FACGE, FACGT and FADD
Bug #436411
commit c5331315d7a62ec1c117ff773fadfeb0bf433b02
Adds arm64 v8.2 FP compare & conditional compare instructions
Bug #438038
commit 393732dda164c1cc0fc511eadc0b8f06008ade4f
Adds zero variants of arm64 v8.2 FP compare instructions.
Bug #438630
commit 7990c1dae6b9825b479fcec905cdde283087aae4
arm64 adis_AdvSIMD_fp_data_proc_1_source: Reject illegal type size (FP16)
The following are currently missing:
Scalar 2-source: FMUL, FSUB, FMAX, FMIN, FMAXNM, FMINNM, FDIV, FNMUL (h)
Scalar 3-source: FMADD, FMSUB, FNMADD, FNMSUB (h)
Scalar 1-source / compare: FCMP, FCMPE, FCSEL (h); FRECPX;
FRINTA/FRINTI/FRINTM/FRINTN/FRINTP/FRINTX/FRINTZ (h); FMOV scalar-general, FMOV
scalar-immediate
Vector:
- arithmetic: FDIV, FMAX, FMIN, FMAXNM, FMINNM (vector); FMLA, FMLS, FMUL,
FMULX (vector + by-element)
- min/max reductions & pairwise: FMAXV, FMINV, FMAXNMV, FMINNMV, FMAXP,
FMINP, FMAXNMP, FMINNMP (each scalar-pairwise or vector)
- estimates: FRECPE, FRECPS, FRSQRTE, FRSQRTS (vector)
- rounding: FRINTA/I/M/N/P/X/Z (vector)
- int to/from FP: SCVTF, UCVTF (vector, fixed-point + integer variants)
- FMOV vector-immediate
- FP TO integer (fixed-point) h-forms, scalar + vector: FCVTAS/FCVTAU,
FCVTMS/FCVTMU, FCVTNS/FCVTNU, FCVTPS/FCVTPU, FCVTZS/FCVTZU (each x2 rows:
vector + scalar; FCVTZS/FCVTZU x4: vector fixed-point, vector integer, scalar
fixed-point, scalar integer)
The implementation should be fairly simple, following the pattern of the above
commits. Extend the existing per-space decoders that already handle the s/d
forms. Scalar 2-source in dis_AdvSIMD_fp_data_proc_2_source, scalar 3-source
vector dis_AdvSIMD_three_same_fp16, dis_AdvSIMD_two_reg_misc_fp16, and the
1-source/compare paths, etc. checking size == X11 and then emitting Ity_F16
Iops, each gated on VEX_HWCAPS_ARM64_FP16. Then host_arm64_isel.c lowers the
Iop_*F16 variants. But there only a minimal number of existing F16 Iops, so you
have to invent some and then also implement them in host_arm64_isel.c.
Note that the FCVT/FCVTN/FCVTL precision-conversion instructions do handle
half-precision floats, but were already part of the base Armv8.0 (FEAT_FP /
FEAT_AdvSIMD), not FEAT_FP16.
Also note this is different from FEAT_BP16 (Armv8.6, BFloat16), which support a
different 16bit float representation and doesn't provide pure 16bit arithmetic
instructions.
Referenced Bugs:
https://bugs.kde.org/show_bug.cgi?id=528707
[Bug 528707] Support for armv8.x user instruction set features
--
You are receiving this mail because:
You are watching all bug changes.