-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Invalid information for ARM memory operand on next #2281
Comments
Another issue, is that
|
Thank you for the report! The underlying problem of it is, that there were and are not many tests for the detail information. This makes issues like yours so valuable.
This is because in the To be closer to the
Thanks, this is probably because I changed the default value to 0 for the mem scale instead of 1. Will be fixed in the PR for this issue.
Nice catch with all the shifting things. This must have slipped through the todo list in #1949. The memory operand |
I fixed |
Hi,
I just checked a bunch of instructions with
cstool
and it seems that the some information about a memory operand are broken innext
.scale
is always 0 instead of being1
or-1
, here are some examples:disp
is working withsubtracted
being set toTrue
accordingly, but why are you using a field not inarm_op_mem
? e.g in AArch64, the disp will just be negative and there isn't asubtracted
field.lshift
is always 0 whatever we are doing (butop->shift.value
is set), here is an example:lshift
inarm_op_mem
as we can have a whole lot of other shift that aren't left shift, here is an example:op->shift.type
isn'tARM_SFT_INVALID
for a memory operand that it's the offset that should be shifted and not the loaded value? As for regular shift, it's the value that is shifted, here are examples where both shift are represented the same but aren't applied to the same thing:I think that the
scale
andlshift
issues are probably related to the recent reword on ARM by @Rot127 in #1949, but I'm not sure. I didn't test those instructions on the v5 but as I previously saw some instructions having a correctscale
I think it is working on the v5.Thanks
The text was updated successfully, but these errors were encountered: