-
Notifications
You must be signed in to change notification settings - Fork 396
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
Conversation
…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>
Since we found the use cases which pass in |
…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>
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>
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.
All changes looks good to me. Will leave this to @fjeremic to review and launch Sanity tests.
@genie-omr build all |
Adding template for function
generateS390CompareAndBranchInstruction
and declaring it to acceptint32_t
orint64_t
type only for parametersecond
. Also, casting parameters in the use cases which don't fit the declaration.Closes: #3878