Skip to content

Missing or incorrect alias and id info of jlar #2861

@Rot127

Description

@Rot127

Work environment

Questions Answers
System Capstone runs on OS/arch/bits all
Capstone module affected riscv
Source of Capstone git clone
Version/git commit next

Instruction bytes giving faulty results

cstool -dr riscv32 "0x67, 0x80, 0x50, 0x00"
 0  67 80 50 00  jr    5(ra)
    ID: 31 (tail)
    Is alias: 0 ((null)) with REAL operand set
    op_count: 3
        operands[0].type: REG = zero
        operands[0].access: WRITE
        operands[1].type: REG = ra
        operands[1].access: READ
        operands[2].type: IMM = 0x5
        operands[2].access: READ

    Groups: jump

Expected results

It should be:

is_alias: 1
id: jlar
alias_id: jr

Steps to get the wrong result

With cstool: above

Additional Logs, screenshots, source code, configuration dump, ...

Drag and drop zip archives containing the Additional info here, don't use external services or link.
Screenshots can be directly dropped here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RISCVArchbugSomething is not working as it should

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions