-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
miri
no longer builds after rust-lang/rust#94469
#94474
Comments
Ah, now division needs
@workingjubilee in the docs it says this is equivalent |
Whoops. |
I don't think it strictly has to have both being init, though... for this purpose, it is sufficient to assume that the stated equivalence holds in the case of uninit data only if both sides are also considered implicitly frozen by this operation. One of the purposes IS to allow composing a partially initialized vector with another that fills in the blanks in order to get a fully initialized vector. The important detail is that the operation is fully branchless: it may be valid to execute it using branches, but it does not need any to complete. |
Well, it is still quite relevant whether calling the intrinsic with uninit data in a "dead" element is UB or not. But for now I will simply make it UB, and then if that is ever a problem we can see what we want to do. |
It should not be, though I think that the resulting vector from a |
In that case, at least on the LLVM side, equivalence with
That seems like an odd requirement, what would motivate this?
Definitely.
Yeah so in a sense the discussion is rather moot currently and maybe I shouldn't have started it. (But by default Miri does not check integer initialization, so this still makes a difference for that case.) |
Because ultimately, And there's a suite of separately-defined LLVM intrinsics... the |
I don't understand how that motivates introducing UB when "forwarding" uninit data. I expected the type of |
Hmm, perhaps you are right then. |
Rustup: simd_select Cc rust-lang/rust#94474
Hello, this is your friendly neighborhood mergebot.
After merging PR #94469, I observed that the tool miri has failing tests.
A follow-up PR to the repository https://github.com/rust-lang/miri is needed to fix the fallout.
cc @Dylan-DPC, do you think you would have time to do the follow-up work?
If so, that would be great!
The text was updated successfully, but these errors were encountered: