Skip to content

Next branch disassembles ARM vcmp.f64 instruction incorrectly. #1855

@seviezhou

Description

@seviezhou

Here is the result of capstone-v4:

> ./cstool -d arm '47 7B B4 EE'
 0  47 7b b4 ee  vcmp.f64	d7, d7
	ID: 285 (vcmp)
	op_count: 2
		operands[0].type: REG = d7
		operands[0].access: READ
		operands[1].type: REG = d7
		operands[1].access: READ
	Vector-data: 15
	Registers read: d7
	Registers modified: fpscr_nzcv
	Groups: vfp2 dpvfp

Here is the next branch

> ./cstool -d arm '47 7B B4 EE'
ERROR: invalid assembly code

But using armv8 works correctly:

> ./cstool -d armv8 '47 7B B4 EE' 
 0  47 7b b4 ee  vcmp.f64	d7, d7
	ID: 334 (vcmp)
	op_count: 2
		operands[0].type: REG = d7
		operands[0].access: READ
		operands[1].type: REG = d7
		operands[1].access: READ
	Vector-data: 16
	Registers read: d7
	Registers modified: fpscr_nzcv
	Groups: vfp2 dpvfp

There are many similar cases, could you please take a look ? Thank you!

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