-
Notifications
You must be signed in to change notification settings - Fork 50
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
add BMI2 instruction pdep #328
Conversation
proofs/compiler/x86_instr_decl.v
Outdated
@@ -621,6 +622,10 @@ Definition x86_PEXT sz (v1 v2: word sz): ex_tpl (w_ty sz) := | |||
let _ := check_size_32_64 sz in | |||
ok (@pextr sz v1 v2). | |||
|
|||
Definition x86_PDEP sz (v1 v2: word sz): ex_tpl (w_ty sz) := | |||
let _ := check_size_32_64 sz in | |||
ok (@pextr sz v1 v2). |
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.
This line looks wrong.
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.
Yes, your are using the semantic of pext to define the semantic of pdep.
Do you need help to be able to properly define the semantic of pdep in Coq and Easycrypt?
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.
Yes, some help would be much appreciated. I've been discussing with @sarranz about it and was told that the semantic isn't correct. Supporting it however doesn't seem trivial in his opinion: https://www.felixcloutier.com/x86/pdep
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.
I think it is now ready to be merged.
Review is welcome
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.
thank you!
Why is there an “-r” at the end of the names of the |
Please also add a note to the CHANGELOG. |
@kcning can you add a note in the CHANGELOG as required by Vincent ? |
And also please remove the trailing |
Co-authored-by: Benjamin Grēgoire <Benjamin.Gregoire@inria.fr>
I’ve removed the trailing CI: https://gitlab.com/jasmin-lang/jasmin/-/pipelines/759329323 |
Together with Antoine, we’ve tested all day the Coq semantics and are pretty sure that it not too wrong. |
No description provided.