Skip to content

[PPC] mtocrf, mfocrf misses fxm immediate #1903

Closed
@Rot127

Description

@Rot127

Brief

The PPC instruction mtocrf should have two operands: register RS and immediate fxm. But Capstone only decodes the register.

Reproduce

> ./cstool -d ppc64be 7c120120
 0  7c 12 01 20  mtocrf	0x20, r0
	ID: 796 (mtocrf)

# missing immediate: 0x20

	op_count: 1
		operands[0].type: REG = r0

Additional info

> git log -i -n 1
commit 0494e94bab2faac6f5356a43bcbc00c0eae42639 (HEAD -> next, origin/next)
Merge: eea28905 16937b1d
...
Date:   Sat Jul 23 23:53:08 2022 +0800
> ./cstool -v
cstool for Capstone Disassembler, v5.0.0

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