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

Suboptimal zero register should consider flags #7

Open
gaul opened this issue Jul 11, 2021 · 0 comments
Open

Suboptimal zero register should consider flags #7

gaul opened this issue Jul 11, 2021 · 0 comments

Comments

@gaul
Copy link
Owner

gaul commented Jul 11, 2021

Some sequences like the following:

YDIS: cmp byte ptr [rbx+rdx*1-0x1], 0x2f
YDIS: mov ecx, 0x0
YDIS: cmovz eax, ecx

use mov, ecx, 0x0 instead of xor ecx, ecx because the former preserves the flags and the latter does not. Could x86lint do a limited multi-instruction analysis to avoid these false positives?

gaul added a commit that referenced this issue Sep 26, 2021
gaul added a commit that referenced this issue Sep 26, 2021
gaul added a commit that referenced this issue Sep 26, 2021
gaul added a commit that referenced this issue Sep 26, 2021
gaul added a commit that referenced this issue Sep 26, 2021
gaul added a commit that referenced this issue Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant