Skip to content

Next branch disassembles AArch64 LD3 instruction incorrectly. #1854

Closed
@seviezhou

Description

@seviezhou

Here is the result of capstone-v4:

> ./cstool -d arm64 'A0 4D DF 4C'
0  a0 4d df 4c  ld3	{v0.2d, v1.2d, v2.2d}, [x13], #0x30
	ID: 148 (ld3)
	op_count: 5
		operands[0].type: REG = v0
		operands[0].access: READ | WRITE
			Vector Arrangement Specifier: 0x8
		operands[1].type: REG = v1
		operands[1].access: READ | WRITE
			Vector Arrangement Specifier: 0x8
		operands[2].type: REG = v2
		operands[2].access: READ
			Vector Arrangement Specifier: 0x8
		operands[3].type: MEM
			operands[3].mem.base: REG = x13
		operands[4].type: IMM = 0x30
	Write-back: True
	Registers read: v0 v1 v2 x13
	Registers modified: v0 v1 x13
	Groups: neon

Here is the next branch

> ./cstool -d arm64 'A0 4D DF 4C'
0  a0 4d df 4c  ld3	{v0.2d, v1.2d, v2.2d}, [x13], #48
	ID: 305 (ld3)
	op_count: 4
		operands[0].type: REG = v0
		operands[0].access: READ | WRITE
			Vector Arrangement Specifier: 0xc
		operands[1].type: REG = v1
		operands[1].access: READ | WRITE
			Vector Arrangement Specifier: 0xc
		operands[2].type: REG = v2
		operands[2].access: READ
			Vector Arrangement Specifier: 0xc
		operands[3].type: MEM
			operands[3].mem.base: REG = x13
	Write-back: True
	Registers read: v0 v1 v2 x13
	Registers modified: v0 v1 x13
	Groups: neon

operands[4] is missing in the next branch.

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