Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize vget_low_s8 on AArch64 #1284

Merged
merged 2 commits into from
Feb 19, 2022
Merged

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Feb 18, 2022

This was missed when most of the AArch64 intrinsics were stabilized.

cc rust-lang/rust#94083

@rust-highfive
Copy link

@Amanieu: no appropriate reviewer found, use r? to override

@@ -4989,6 +4989,10 @@ pub unsafe fn vget_high_f32(a: float32x4_t) -> float32x2_t {
#[target_feature(enable = "neon")]
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
#[cfg_attr(test, assert_instr(nop))]
#[cfg_attr(
target_arch = "aarch64",
stable(feature = "neon_intrinsics", since = "1.59.0")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably shouldn't be 1.59.0 as it's probably not going to be backported.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that but rustc doesn't like it when I put different version numbers on the same feature name.

Copy link

@KamilaBorowska KamilaBorowska Feb 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use a different feature name such as vget_low_s8, then rustc won't complain. Feature names for stable features are mostly irrelevant anyway - those features are stable, they don't need feature annotation. Stabilizing things while changing their feature names was done before, see rust-lang/rust#86344 for instance (in this case, this stabilized MaybeUninit::write which back then used maybe_uninit_extra feature without stabilizing everything else that used maybe_uninit_extra feature).

This was missed  when most of the AArch64 intrinsics were stabilized.
@Amanieu Amanieu merged commit 7a41576 into rust-lang:master Feb 19, 2022
@Amanieu Amanieu deleted the vget_low_s8 branch February 19, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants