Skip to content
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

fixes register assignments in p-code semantics #1455

Merged

Commits on Mar 29, 2022

  1. fixes register assignments in p-code semantics

    In p-code the lower parts of registers are referenced as variables
    with the same name as the base register but with the size equal to
    the size of the referenced part, e.g., YMM0:64 refers to the lower
    64 bits of the YMM0 register. The semantics of assignemnt assumes
    that the upper parts are preserved.
    
    This commit implements the proper semantics of the `set#`
    operator, i.e., it extends the right-hand side to the size of the
    base register, and properly ORs it with the left-hand side.
    
    Note, the fix also touches the `setw` macro from BinaryAnalysisPlatform#1454. It was still
    correct, since all uses of setw was properly typed (unlike p-code),
    but the new version is more consistent and more general as it now
    allows the right-hand side to have a different type.
    ivg committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    9485fd0 View commit details
    Browse the repository at this point in the history