Skip to content

cpufeatures: vpclmulqdq returns wrong result for x86-64-v3 #1598

Open

Description

@Sp00ph

I tried this code:

cpufeatures::new!(test, "vpclmulqdq");

fn main() {
    dbg!(test::get(), is_x86_feature_detected!("vpclmulqdq"));
}

using cpufeatures 0.3.1. From my understanding, the cpufeatures feature detection should return identical results to is_x86_feature_detected!(), but, when compiled for x86-64-v3, this prints (false, true) for me, on two separate machines (Raptorlake and Zen3). When compiled for their native arches, it prints (true, true), presumably just because the native arches have all features enabled, so no runtime detection takes place.

Activity

  1. Sp00ph commented on Nov 8, 2026

    @Sp00ph
    Author

    Hmm, seems like this might get fixed by #1528?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions