Closed susitsm closed 1 month ago
I just realized this is a simplification like xor rax, rax
since the result will always be 0
iced has some special cases like that since it's obvious that if you execute eg. 'xor rax,rax' (or more likely 'xor eax,eax') you're not reading eax/rax, you're writing to it (clearing it in this case).
Printing the instruction info for
sub rax, rax
gives the following results:
Any
sub reg1, reg2
will give the same result whenreg1 == reg2
. This seems to be becauseimplied access
inflags1
containsImpliedAccess::Clear_rflags
for the instruction.Would love to fix it in a PR, but I don't know much about the info table in iced. Is there any resource I can turn to?