-
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
AArch64: Allow negative immediate offset for memory access #4628
Conversation
I don't really like this workaround, but I need to do something to allow the negative offset (-4) for accessing
I would appreciate alternative ideas. |
} | ||
else | ||
{ | ||
TR_ASSERT(false, "Offset is too large for specified instruction."); |
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.
Let's make this a fatal assert.
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.
Changed to TR_ASSERT_FATAL()
.
} | ||
else | ||
{ | ||
TR_ASSERT(false, "Offset is too large for specified instruction."); |
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.
Let's make this a fatal assert.
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.
Changed to TR_ASSERT_FATAL()
.
This commit rewrites the instruction "ldrimmw" (12-bit unsigned offset) to "ldurw" (9-bit signed offset) when a negative value is used as the offset. Signed-off-by: KONNO Kazuhiro <konno@jp.ibm.com>
d436fa9
to
02c7167
Compare
@genie-omr build aarch64 |
This commit rewrites the instruction "ldrimmw" (12-bit unsigned offset)
to "ldurw" (9-bit signed offset) when a negative value is used as the
offset.
Signed-off-by: KONNO Kazuhiro konno@jp.ibm.com