Aarch64: target_feature="neon" enabled on nightly

(Cross-posted from users.rust-lang.org)

It seems that neon is always enabled as a target_feature on nightly-aarch64-unknown-linux-gnu and nightly-aarch64-apple-darwin but not on the respective stable toolchains. Is that on purpose and more importantly will that behavior be implemented on stable as well when the aarch64 SIMD intrinsics are stabilized?

pi@raspberrypi:~ $ rustup default stable
[...]
  stable-aarch64-unknown-linux-gnu unchanged - rustc 1.52.0 (88f19c6da 2021-05-03)

pi@raspberrypi:~ $ rustc --print cfg
debug_assertions
target_arch="aarch64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_os="linux"
target_pointer_width="64"
target_vendor="unknown"
unix

pi@raspberrypi:~ $ rustup default nightly
[...]
  nightly-aarch64-unknown-linux-gnu unchanged - rustc 1.54.0-nightly (881c1ac40 2021-05-08)

pi@raspberrypi:~ $ rustc --print cfg
[...]
target_feature="fp"
target_feature="neon"
[...]

Target features are only shown when they are either stable or the compiler is nightly:

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.