Skip to content

Incorrect broadcast format in MASM formatter #522

@sneves

Description

@sneves

Disassembling (for example) the byte sequence 62 f2 55 5b 64 5c 24 20 using the ZYDIS_FORMATTER_STYLE_INTEL_MASM formatting style yields

vpblendmd zmm3 {k3}, zmm5, dword ptr [rsp+80h] {1to16}

However this is not the correct format for MASM, and MASM will complain about it. The correct format for this would be

vpblendmd zmm3 {k3}, zmm5, dword bcst [rsp+80h]

as described in the MASM documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-formatterArea: FormatterC-bugCategory: This is a bug (or a fix for a bug, when applied to PRs)P-mediumPriority: Medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions