Alex Crichton ab098c6be6 wasm32: Fix undefined behavior with shift intrinsics
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
2025-03-16 13:20:37 +00:00
..
2025-02-13 10:54:53 +00:00