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

x86 - AVX512 mask registers show up as invalid #1672

Open
iconmaster5326 opened this issue Aug 3, 2020 · 0 comments
Open

x86 - AVX512 mask registers show up as invalid #1672

iconmaster5326 opened this issue Aug 3, 2020 · 0 comments

Comments

@iconmaster5326
Copy link

The next branch of Capstone doesn't seem to recognize the mask registers of x86's AVX512 extension any longer. For example:

$ kstool x64 'kmovw eax, k0'
kmovw eax, k0 = [ c5 f8 93 c0 ]
$ cstool -d x64 c5f893c0
 0  c5 f8 93 c0                                      kmovw      eax, k0
        ID: 288 (kmovw)
        Prefix:0x00 0x00 0x00 0x00 
        Opcode:0xc5 0xf8 0x00 0x00 
        rex: 0x40
        addr_size: 8
        modrm: 0xc0
        disp: 0x0
        sib: 0x0
        op_count: 2
                operands[0].type: REG = eax
                operands[0].size: 4
                operands[0].access: WRITE
                operands[1].type: REG = (null)
                operands[1].size: 0
                operands[1].access: READ
        Registers read: (null)
        Registers modified: eax
        Groups: avx512 

As you can see, Capstone gets the op_str correct, but fails to give the user operands[1].type, which is X86_REG_INVALID instead of X86_REG_K0.

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