Skip to content

A few fixes in x86 std_detect - #166335

Merged
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
sayantn:keylocker-fix
Nov 27, 2026
Merged

rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
sayantn:keylocker-fix

Conversation

@sayantn

@sayantn sayantn commented Nov 21, 2026

Copy link
Copy Markdown
Contributor
  • xsave and family don't actually need os avx support
  • fma, f16c and xop do require os avx support, since they all use vex encoding
  • fix widekl detection, checking os support before enabling
  • fix some other mistakes

@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in std_detect

cc @Amanieu, @folkertdev

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 21, 2026
@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 38 candidates
  • Random selection from JohnTitor, Mark-Simulacrum

@bardiharborow

Copy link
Copy Markdown
Contributor

@rustbot label +T-libs +A-target-feature +A-SIMD +O-x86_64

@rustbot rustbot added A-SIMD Area: SIMD (Single Instruction Multiple Data) A-target-feature Area: Enabling/disabling target features like AVX, Neon, etc. O-x86_64 Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64) T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 22, 2026
@JohnTitor

Copy link
Copy Markdown
Member

r? Amanieu folkertdev
(I'm not familiar with this area 🙏 )

@rustbot rustbot assigned Amanieu and unassigned JohnTitor Nov 23, 2026
@Amanieu

Amanieu commented Nov 27, 2026

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f3803c4 has been approved by Amanieu

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
Rollup of 20 pull requests

Successful merges:

 - #164161 (`-Znext-solver` Support a bit more types for rustdoc auto traits)
 - #165572 (Run the `FatLtoCleanup` pass to lower `llvm.type.checked.load`)
 - #166235 (Keep opening '(' when suggesting to remove '&' from pattern)
 - #166335 (A few fixes in x86 std_detect)
 - #166516 (Fix ICE in iterator method suggestion when the receiver is a block)
 - #166586 (abby test dsl: one binder to rule them all)
 - #166604 (fix: embed-source-dwarf test with remapped debuginfo)
 - #166620 (Change wording of overwrite span in `unused_assignments` lint)
 - #166626 (Remove some outdated comments about None terminator)
 - #164289 (Add regression test for self-referential GAT with missing lifetime argument)
 - #165859 (Add codegen test for MaybeUninit array built in the return slot)
 - #166092 (add fake borrow tests for divergent match guards)
 - #166292 (Don't suggest closure braces for errors inside the body)
 - #166435 (Encode direct const mir)
 - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append)
 - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2)
 - #166584 (Arg pos const mismatch ice)
 - #166599 (add alias-bound test)
 - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.)
 - #166623 (Correct feature name for `is_cased()` method)

Failed merges:

 - #166583 (abby dsl tests: the passing test should check-pass)
@rust-bors
rust-bors Bot merged commit c447299 into rust-lang:main Nov 27, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
Rollup merge of #166335 - sayantn:keylocker-fix, r=Amanieu

A few fixes in x86 std_detect

 - `xsave` and family don't actually need os avx support
 - `fma`, `f16c` and `xop` *do* require os avx support, since they all use vex encoding
 - fix `widekl` detection, checking os support before enabling
 - fix some other mistakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-SIMD Area: SIMD (Single Instruction Multiple Data) A-target-feature Area: Enabling/disabling target features like AVX, Neon, etc. O-x86_64 Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core_arch test suite fails with SIGILL

5 participants