Skip to content

Don't require AVX512 for 256-bit VAES intrinsics #1348

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

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Oct 27, 2022

These are available on AMD CPUs without AVX512,

Fixes #1343

These are available on AMD CPUs without AVX512,

Fixes rust-lang#1343
@rust-highfive
Copy link

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

@@ -471,6 +471,12 @@ fn matches(rust: &Function, intel: &Intrinsic) -> Result<(), String> {
continue;
}

// Some AMD CPUs support VAES without AVX512, even though the Intel
// documentation states that those instructions require AVX512VL.
if *cpuid == "AVX512VL" && intel.cpuid.contains(&"VAES".to_string()) {
Copy link
Member

Choose a reason for hiding this comment

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

.contains(&"VAES".to_string()) is a bit goofy looking but it's test only and probably clearer than the alternative so it's fine.

@Amanieu Amanieu merged commit 64f03ac into rust-lang:master Oct 27, 2022
@Amanieu Amanieu deleted the amd-vaes branch October 27, 2022 18:51
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.

VAES should not be restricted to AVX512
3 participants