Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
seviezhou opened this issue Mar 15, 2022 · 0 comments · Fixed by #1949
Closed

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

seviezhou opened this issue Mar 15, 2022 · 0 comments · Fixed by #1949

Comments

@seviezhou
Copy link

seviezhou commented Mar 15, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant