Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4864da4

Browse files
authored
Unrolled build for rust-lang#137318
Rollup merge of rust-lang#137318 - bjorn3:cg_clif_abi_workaround, r=workingjubilee Workaround Cranelift not yet properly supporting vectors smaller than 128bit While it would technically be possible to workaround this in cg_clif, it quickly becomes very messy and would likely cause correctness issues. Working around it in rustc instead is much simper and won't have any negative impact for code running on stable as vectors smaller than 128bit can only be made on nightly using core::simd or #[repr(simd)].
2 parents f04bbc6 + 18c210c commit 4864da4

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_target/src/callconv

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/callconv/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,9 @@ impl<'a, Ty> FnAbi<'a, Ty> {
737737
// to 128-bit-sized vectors.
738738
"x86" if spec.rustc_abi == Some(RustcAbi::X86Sse2) => arg.layout.size.bits() <= 128,
739739
"x86_64" if spec.rustc_abi != Some(RustcAbi::X86Softfloat) => {
740-
arg.layout.size.bits() <= 128
740+
// FIXME once https://github.com/bytecodealliance/wasmtime/issues/10254 is fixed
741+
// accept vectors up to 128bit rather than vectors of exactly 128bit.
742+
arg.layout.size.bits() == 128
741743
}
742744
// So far, we haven't implemented this logic for any other target.
743745
_ => false,

0 commit comments

Comments
 (0)