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

Add template for function generateS390CompareAndBranchInstruction #4200

Merged
merged 3 commits into from
Aug 27, 2019

Commits on Aug 13, 2019

  1. Add template for function generateS390CompareAndBranchInstruction a…

    …nd cast the relevant use cases
    
    Adding template for function `generateS390CompareAndBranchInstruction` and initialize it to pass in int32_t or int64_t type only for the parameter `second`.Also, cast the type of the parameter to either int32_t or int64_t in the use cases if needed.
    
    Adding a new signiture to have it pass in `TR::RealRegister *` type for parameter `second`, and casting it to `TR::Register *` type to use the relevant function.
    
    Signed-off-by: simonameng <simonameng97@gmail.com>
    simonameng committed Aug 13, 2019
    Configuration menu
    Copy the full SHA
    0e46aba View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2019

  1. Delete the TR::RealRegister version of `generateS390CompareAndBranc…

    …hInstruction`
    
    Delete the `TR::RealRegister` version of `generateS390CompareAndBranchInstruction` since alreay typecasted the relevant argument to `TR::Register` from `TR::RealRegister`.
    
    Signed-off-by: simonameng <simonameng97@gmail.com>
    simonameng committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    6c0018d View commit details
    Browse the repository at this point in the history
  2. Typecast the argument in use cases to int32_t or int64_t

    For the use cases with op code `TR::InstOpCode::CL`, treat the immediate value as `int32_t` type. And for the use cases with op code `TR::InstOpCode::CLG`, treat the immediate value as `int64_t` type.
    
    Signed-off-by: simonameng <simonameng97@gmail.com>
    simonameng committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    1ab0c26 View commit details
    Browse the repository at this point in the history