-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Support vectors with fewer than 8 elements for simd_select_bitmask #77504
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -793,14 +793,16 @@ fn generic_simd_intrinsic( | |||
require_simd!(arg_tys[1], "argument"); | |||
let v_len = arg_tys[1].simd_size(tcx); | |||
require!( | |||
m_len == v_len, | |||
m_len == v_len || (m_len == 8 && v_len < 8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment above the require
that explains this? I found the juxtaposition between this and the error message below a bit confusing.
r=me with CI passing and some kind of comment. |
e7e6c43
to
e41a144
Compare
@bors r=ecstatic-morse |
📌 Commit e41a144 has been approved by |
…as-schievink Rollup of 8 pull requests Successful merges: - rust-lang#77072 (Minor `hash_map` doc adjustments + item attribute orderings) - rust-lang#77368 (Backport LLVM apfloat commit to rustc_apfloat) - rust-lang#77445 (BTreeMap: complete the compile-time test_variance test case) - rust-lang#77504 (Support vectors with fewer than 8 elements for simd_select_bitmask) - rust-lang#77513 (Change DocFragments from enum variant fields to structs with a nested enum) - rust-lang#77518 (Only use Fira Sans for the first `td` in item lists) - rust-lang#77521 (Move target feature whitelist from cg_llvm to cg_ssa) - rust-lang#77525 (Enable RenameReturnPlace MIR optimization on mir-opt-level >= 2) Failed merges: r? `@ghost`
Resolves the issue raised here: rust-lang/stdarch#310 (comment)