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

Regression: AArch64 store to x30 disassembles as store to LR #1621

Closed
nshp opened this issue Apr 22, 2020 · 1 comment · Fixed by #2026
Closed

Regression: AArch64 store to x30 disassembles as store to LR #1621

nshp opened this issue Apr 22, 2020 · 1 comment · Fixed by #2026

Comments

@nshp
Copy link

nshp commented Apr 22, 2020

On next branch:

$ ./cstool/cstool -d arm64 'df 03 00 f9'
 0  df 03 00 f9  str	xzr, [x30]
	ID: 762 (str)
	op_count: 2
		operands[0].type: REG = xzr
		operands[0].access: READ
		operands[1].type: MEM
			operands[1].mem.base: REG = lr
		operands[1].access: READ | WRITE
	Registers read: xzr lr

On 4.0.1 tag (matches objdump):

$ ./cstool/cstool -d arm64 'df 03 00 f9'
 0  df 03 00 f9  str	xzr, [x30]
	op_count: 2
		operands[0].type: REG = xzr
		operands[0].access: READ | WRITE
		operands[1].type: MEM
			operands[1].mem.base: REG = x30
		operands[1].access: READ | WRITE
	Registers read: xzr x30
	Registers modified: xzr
@Rot127
Copy link
Collaborator

Rot127 commented Nov 2, 2023

What is the problem with this one?

#2026 gives:

 ./cstool -d aarch64 'df 03 00 f9'
 0  df 03 00 f9  str	xzr, [x30]
	ID: 1106 (str)
	Is alias: 1471 (str) with ALIAS operand set
	op_count: 2
		operands[0].type: REG = xzr
		operands[0].access: READ
		operands[1].type: MEM
			operands[1].mem.base: REG = x30
		operands[1].access: WRITE
	Registers read: xzr x30

Please check it.

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.

2 participants