From 81e05d4d482387bc5658f2145668c3b5429ad8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 27 Jul 2026 08:26:09 +0300 Subject: [PATCH 1/2] cpufeatures: fix `avx` detection --- cpufeatures/src/x86.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpufeatures/src/x86.rs b/cpufeatures/src/x86.rs index dc83f2fd..bf857729 100644 --- a/cpufeatures/src/x86.rs +++ b/cpufeatures/src/x86.rs @@ -113,7 +113,7 @@ __expand_check_macro! { ("sse4.2", "", 0, ecx, 20), ("popcnt", "", 0, ecx, 23), ("aes", "", 0, ecx, 25), - ("avx", "xmm", 0, ecx, 28), + ("avx", "ymm", 0, ecx, 28), ("rdrand", "", 0, ecx, 30), ("mmx", "", 0, edx, 23), From d7979eacb59bd9c260d025abb6bd0b9cd5936e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 27 Jul 2026 08:29:21 +0300 Subject: [PATCH 2/2] Update changelog --- cpufeatures/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpufeatures/CHANGELOG.md b/cpufeatures/CHANGELOG.md index c97aa010..32f403a6 100644 --- a/cpufeatures/CHANGELOG.md +++ b/cpufeatures/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.3.1 (UNRELEASED) +### Fixed +- Detection of the `avx` target feature ([#1511]) + +[#1511]: https://github.com/RustCrypto/utils/pull/1511 + ## 0.3.0 (2026-02-05) ### Added - `x86` support for: `sha512`, `sm3`, `sm4` ([#1181])