mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

This commit fixes an issue where simd shift intrinsic in LLVM are undefined behavior if the shift amount is larger than the bit width of the lane. While in WebAssembly the corresponding instructions are defined as masking out the upper bits we need to represent that explicitly in LLVM IR to ensure that the semantics remain defined. cc rust-lang/rust#137941
stdarch - Rust's standard library SIMD components
Crates
This repository contains two main crates:
-
core_arch
implementscore::arch
- Rust's core library architecture-specific intrinsics, and -
std_detect
implementsstd::detect
- Rust's standard library run-time CPU feature detection.
The std::simd
component now lives in the
packed_simd_2
crate.