Skip to content

Zydis formats extra operand-size suffix for VSIB instructions #550

Open
@recoules

Description

Dear developers,

The FormatterATT module appends the operand-size suffix for instruction using VSIB.

For instance, the opcode c42289914c3afc is disassembled as vpgatherqqq %xmm14, -0x04(%rdx,%xmm15,1), %xmm9.

Yet, in case of vpgather, the operand-size is already part of the mnemonic. The extra suffix makes the printed disassembly invalid.
I am not sure, but I think it is the same for other mnemonics using a VSIB operand.

Would it make sense to remove the second case here ?
https://github.com/zyantific/zydis/blob/bffbb610cfea643b98e87658b9058382f7522807/src/FormatterATT.c#L306C14-L306C15

Regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions