Skip to content

stdarch subtree update#153336

Merged
rust-bors[bot] merged 28 commits intorust-lang:mainfrom
folkertdev:stdarch-sync-2026-03-03
Mar 3, 2026
Merged

stdarch subtree update#153336
rust-bors[bot] merged 28 commits intorust-lang:mainfrom
folkertdev:stdarch-sync-2026-03-03

Conversation

@folkertdev
Copy link
Contributor

Subtree update of stdarch to rust-lang/stdarch@d4a226d.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost

folkertdev and others added 28 commits February 18, 2026 21:31
Use intrinsics for `sse2`, `sse41`, `avx2`, `avx512bw`

The majority of implementations make use of `simd_shuffle` since that
optimized through to the avx512 intrinsics that made use of the lower
target feature intrinsics. Combined with masked stores, instruction
tests would fail presumably due to the casting and clamping that
the compiler couldn't see through. This is a known weakness as seen
in the other masked stores like the truncating conversion stores.
x86: use `simd::intrinsics` for saturating packs
Add const to `sse2`, `sse41`, `avx2`, and `avx512bw` functions and tests
use `intrinsics::simd` for interleaving store
aarch64: cleanup of some long array literals
x86: Followup to add const for pack intrinsics and tests
Add missing runtime test for _mm_comige_ss and fix _mm_comigt_ss test
…f-two-reads-writes

aarch64: fix UB in non-power-of-two reads and writes
@rustbot
Copy link
Collaborator

rustbot commented Mar 3, 2026

stdarch is developed in its own repository. If possible, consider making this change to rust-lang/stdarch instead.

cc @Amanieu, @sayantn

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2026
@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Mar 3, 2026
@folkertdev
Copy link
Contributor Author

@bors r+ p=1

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 3, 2026

📌 Commit e00790e has been approved by folkertdev

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 Mar 3, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 3, 2026
…, r=folkertdev

stdarch subtree update

Subtree update of `stdarch` to rust-lang/stdarch@d4a226d.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost
rust-bors bot pushed a commit that referenced this pull request Mar 3, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - #153336 (stdarch subtree update)
 - #153285 (Update call-llvm-intrinsics test for Rust 1.94.0 IR)
 - #153326 (Make `rustc_with_all_queries!` pass query modifiers as named values)
rust-bors bot pushed a commit that referenced this pull request Mar 3, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #153336 (stdarch subtree update)
 - #152943 (Parse `impl` restrictions)
 - #153184 (Replace CodegenResults with CompiledModules)
 - #153285 (Update call-llvm-intrinsics test for Rust 1.94.0 IR)
 - #153319 (Comments and docs: add missing periods to "ie.")
 - #153326 (Make `rustc_with_all_queries!` pass query modifiers as named values)
@rust-bors rust-bors bot merged commit 8b1ebb3 into rust-lang:main Mar 3, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 3, 2026
rust-timer added a commit that referenced this pull request Mar 3, 2026
Rollup merge of #153336 - folkertdev:stdarch-sync-2026-03-03, r=folkertdev

stdarch subtree update

Subtree update of `stdarch` to rust-lang/stdarch@d4a226d.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Mar 4, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#153336 (stdarch subtree update)
 - rust-lang/rust#152943 (Parse `impl` restrictions)
 - rust-lang/rust#153184 (Replace CodegenResults with CompiledModules)
 - rust-lang/rust#153285 (Update call-llvm-intrinsics test for Rust 1.94.0 IR)
 - rust-lang/rust#153319 (Comments and docs: add missing periods to "ie.")
 - rust-lang/rust#153326 (Make `rustc_with_all_queries!` pass query modifiers as named values)
@folkertdev folkertdev added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 4, 2026
@folkertdev
Copy link
Contributor Author

This PR contains a fix for out-of-bounds reads/writes on aarch64 on vectors of length 12 (the important property is that the element count is not a power of 2).

The issue was reported in rust-lang/stdarch#2036 and fixed by rust-lang/stdarch#2042. It's probably easiest to backport the whole sync PR, it only missed the beta cutoff by a couple of days.

github-actions bot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Mar 5, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#153336 (stdarch subtree update)
 - rust-lang/rust#152943 (Parse `impl` restrictions)
 - rust-lang/rust#153184 (Replace CodegenResults with CompiledModules)
 - rust-lang/rust#153285 (Update call-llvm-intrinsics test for Rust 1.94.0 IR)
 - rust-lang/rust#153319 (Comments and docs: add missing periods to "ie.")
 - rust-lang/rust#153326 (Make `rustc_with_all_queries!` pass query modifiers as named values)
github-actions bot pushed a commit to rust-lang/stdarch that referenced this pull request Mar 9, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#153336 (stdarch subtree update)
 - rust-lang/rust#152943 (Parse `impl` restrictions)
 - rust-lang/rust#153184 (Replace CodegenResults with CompiledModules)
 - rust-lang/rust#153285 (Update call-llvm-intrinsics test for Rust 1.94.0 IR)
 - rust-lang/rust#153319 (Comments and docs: add missing periods to "ie.")
 - rust-lang/rust#153326 (Make `rustc_with_all_queries!` pass query modifiers as named values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

6 participants