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

Wrong Disassembly view with AVX vmovdqu instruction #169

Closed
kiroxas opened this issue Feb 28, 2024 · 2 comments
Closed

Wrong Disassembly view with AVX vmovdqu instruction #169

kiroxas opened this issue Feb 28, 2024 · 2 comments
Labels
Bug A report of unintended or broken behavior. Missing Support A request to support a currently unsupported case.

Comments

@kiroxas
Copy link

kiroxas commented Feb 28, 2024

I have invalid disassembly output for an AVX instruction.
Here what it looks like in Rad Debugger :

rad_AVX

And here the output in Visual Studio Code :

vs_AVX

Seems like the library you're using for disassembly ( https://github.com/vmt/udis86 if I'm not mistaken )
is failing on a vmovdqu instruction (this one : VEX.128.F3.0F.WIG 7F /r VMOVDQU xmm2/m128, xmm1) reporting wrong instruction and number of bytes read, which cascades in wrong next instructions display.

Quickly looking at the library, seems like there is no AVX-512 support either.

@ryanfleury ryanfleury added Bug A report of unintended or broken behavior. Missing Support A request to support a currently unsupported case. labels Mar 22, 2024
@ratchetfreak
Copy link

one option to fix this would be to switch to intel's xed library,

Upside is that it's gonna be updated every time a new extension comes out,

Down side is documentation is rather lacking, it uses a python build system (solvable) and a python generator to convert the data files into lookup tables (harder). Though you should be able to embed just the minimal sources + generated sources needed for decode into this repo if I understand the Apache license correctly.

@ryanfleury
Copy link
Collaborator

Fixed as of ccf8504. Let me know if you run into any other issues with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Missing Support A request to support a currently unsupported case.
Projects
None yet
Development

No branches or pull requests

3 participants