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

オープン
#1,598 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

Start with the cpufeatures::new! macro and its x86 feature detection path for vpclmulqdq; compare its result when compiled for x86-64-v3 with Rust's is_x86_feature_detected! result. The report reproduces the mismatch on Raptor Lake and Zen 3. Done means the macro reports the same runtime feature result in that build configuration.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
695
フォーク
185
平均マージ
10時間 40分
マージ済み PR(30日)
24

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/utils のほかの issue

RustCrypto/utils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。