Open
Description
Steps for implementing an intrinsic:
- Select an intrinsic below
- Review
coresimd/arm/neon.rs
andcoresimd/aarch64/neon.rs
- Consult ARM official documentation about your intrinsic
- Consult godbolt for how the intrinsic should be codegen'd, using clang as an example. Use the links below and replace the name of the intrinsic in the code with your intrinsic. Note that if ARM is an error then your intrinsic may be AArch64-only
- If the codegen is the same on ARM/AArch64, place the intrinsic in
coresimd/arm/neon.rs
. If it's different place it in both with appropriate#[cfg]
incoresimd/arm/neon.rs
. If it's only AArch64 place it incoresimd/aarch64/neon.rs
- Write a test for your intrinsic at the bottom of the file as well
- Test! Probably use
rustup run nightly sh ci/run-docker.sh aarch64-unknown-linux-gnu
. - When ready, send a PR!