[vectorIntrinsics+fp16] RFR: 8305563: [vectorapi]: Initial aarch64 backend implementation for FP16 operations
Andrew Haley
aph at openjdk.org
Mon Jun 26 13:22:29 UTC 2023
On Mon, 26 Jun 2023 12:34:12 GMT, Bhavana Kilambi <bkilambi at openjdk.org> wrote:
> This patch adds aarch64 (Neon and SVE) backend implementation for the following FP16 operations for which C2 support was added in the commit https://github.com/openjdk/panama-vector/commit/7460d9327aac7d1d2ba6aed4e7137a417dbf6a97 -
>
> Unary operations : AbsVHF, NegVHF
> Binary operations : AddVHF, SubVHF, MulVHF, DivVHF
> Ternary operations : AddReductionVHF, FmaVHF
> Conversion operations : VectorCastHF2D, VectorCastD2HF
>
> Some of these operations on Neon machines, require features "fphp" and "asimdhp" to be available. Feature detection for these features have also been added.
src/hotspot/cpu/aarch64/aarch64_vector.ad line 245:
> 243: default:
> 244: break;
> 245: }
Suggestion:
if (UseSVE > 0 || (VM_Version::supports_fphp() && VM_Version::supports_asimdhp())) {
break;
}
return false;
default:
break;
}
-------------
PR Review Comment: https://git.openjdk.org/panama-vector/pull/217#discussion_r1242181545
More information about the panama-dev
mailing list