Skip to content

arm64: cmeq too many immediate operands #1629

Closed
@ekilmer

Description

@ekilmer

On next branch (f7efa08), there are too many IMM operands:

./cstool -d arm64 '\x20\x98\xe0\x5e'
 0  20 98 e0 5e  cmeq   d0, d1, #0
        ID: 97 (cmeq)
        op_count: 4
                operands[0].type: REG = d0
                operands[0].access: WRITE
                operands[1].type: REG = d1
                operands[1].access: READ
                operands[2].type: IMM = 0x0
                operands[3].type: IMM = 0x0
        Registers read: d1
        Registers modified: d0
        Groups: neon

From v4.0.1

cstool -d arm64 '\x20\x98\xe0\x5e'
 0  20 98 e0 5e  cmeq   d0, d1, #0
        op_count: 3
                operands[0].type: REG = d0
                operands[0].access: WRITE
                operands[1].type: REG = d1
                operands[1].access: READ
                operands[2].type: IMM = 0x0
        Registers read: d1
        Registers modified: d0
        Groups: neon

Metadata

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