Skip to content

stdarch subtree update - #153336

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

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

Conversation

@folkertdev

Copy link
Copy Markdown
Contributor

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

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

r? @ghost

folkertdevand 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
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
Copy Markdown
Collaborator

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

cc @Amanieu, @sayantn

@rustbotrustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 3, 2026
rust-borsBot 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-borsBot 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-borsBot merged commit 8b1ebb3 into rust-lang:mainMar 3, 2026
11 checks passed
@rustbotrustbot 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-actionsBot 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)
@folkertdevfolkertdev added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 4, 2026
@folkertdev

Copy link
Copy Markdown
ContributorAuthor

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-actionsBot 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-actionsBot 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)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 21, 2026
… r=sayantn
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of rust-lang#153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics.
r? sayantn
I believe test-various runs some arm and android tests?
@bors try job=test-various
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 21, 2026
… r=sayantn
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of rust-lang#153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics.
r? sayantn
I believe test-various runs some arm and android tests?
@bors try job=test-various
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 24, 2026
… r=sayantn
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of rust-lang#153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics.
r? sayantn
I believe test-various runs some arm and android tests?
@bors try job=test-various
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 24, 2026
… r=sayantn
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of rust-lang#153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics.
r? sayantn
I believe test-various runs some arm and android tests?
@bors try job=test-various
rust-borsBot pushed a commit that referenced this pull request Mar 24, 2026
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of #153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics. r? sayantn I believe test-various runs some arm and android tests?
@bors try job=test-various
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 24, 2026
… r=sayantn
add neon load/store assembly test
I'm adding this test because it was requested for the beta backport of rust-lang#153336. We'd like to test this with Miri, but currently there is no load/store pair that roundtrips because one or the other still uses the platform-specific intrinsics.
r? sayantn
I believe test-various runs some arm and android tests?
@bors try job=test-various
@AmanieuAmanieu added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 1, 2026
@cuvipercuviper mentioned this pull request Apr 2, 2026
@cuvipercuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 2, 2026
@cuvipercuviper modified the milestones: 1.96.0, 1.95.0Apr 2, 2026
rust-borsBot pushed a commit that referenced this pull request Apr 3, 2026
[beta] backports
- stdarch subtree update #153336 (partial)
- aarch64: fix UB in non-power-of-two reads and writes rust-lang/stdarch#2042
- add neon load/store assembly test #154094
- don't drop arguments' temporaries in `dbg!` #154074
- Init self_decl with a correct vis #154313
- Update LLVM to 22.1.2 #154344
- [perf] Revert FastISel patch #154511
- core: Destabilize beta-stable `RangeInclusiveIter::remainder` #154459
- Revert "Fix: On wasm targets, call `panic_in_cleanup` if panic occurs in cleanup" #154700
- core: Update the feature gate on `TryFrom<integer> for bool` #154691
r? cuviper
rust-borsBot pushed a commit that referenced this pull request Apr 3, 2026
[beta] backports
- stdarch subtree update #153336 (partial)
- aarch64: fix UB in non-power-of-two reads and writes rust-lang/stdarch#2042
- add neon load/store assembly test #154094
- don't drop arguments' temporaries in `dbg!` #154074
- Init self_decl with a correct vis #154313
- Update LLVM to 22.1.2 #154344
- [perf] Revert FastISel patch #154511
- core: Destabilize beta-stable `RangeInclusiveIter::remainder` #154459
- Revert "Fix: On wasm targets, call `panic_in_cleanup` if panic occurs in cleanup" #154700
- core: Update the feature gate on `TryFrom<integer> for bool` #154691
r? cuviper
ghaaj pushed a commit to ghaaj/polygrammar that referenced this pull request Aug 7, 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)
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Aug 17, 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libsRelevant 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.

7 participants

@folkertdev@rustbot@cuviper@Amanieu@okaneco@sayantn@ArunTamil21