Repository navigation
Conversation
|
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr Any special-casing of Miri in the standard library requires review. cc @rust-lang/miri
cc @rust-lang/miri |
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
FWIW our policy disallows code generation, and there is no exception for tests. For those you're supposed to have a pre-arranged reviewer who agreed to reviewing LLM code. |
|
Oh right, I'll close this and open a new pr with tests made by me If that's okay |
|
You can also update this PR. Or you can make it a draft and ask for a reviewer on Zulip. Whatever you prefer. |
| #[unstable(feature = "uint_gather_scatter_bits", issue = "149069")] | ||
| #[rustc_const_unstable(feature = "uint_gather_scatter_bits", issue = "149069")] | ||
| #[miri::intrinsic_fallback_is_spec] | ||
| pub const fn pext<T: [const] fallback::Pext>(x: T, mask: T) -> T { |
There was a problem hiding this comment.
These names are extremely opaque and make little sense to me.
Please name intrinsics more like the Rust operation than their often obscure LLVM name. You can mention the LLVM name in the docs.
b457daf to
50266b1
Compare
This comment has been minimized.
This comment has been minimized.
50266b1 to
3e22e48
Compare
Tracking issue: #149069
LLVM 23 introduced generic intrinsics for pext (extract_bits) and pdep (deposit_bits)