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

ARC objdump has wrong register representation (rNrN+1 instead of rN only) #648

Open
kopartm opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@kopartm
Copy link

kopartm commented Oct 18, 2024

ARC objdump (architecture: arc64:64) generates code with r2r3 register representation:
format elf64-littlearc64

 812:	1000 0682           	lddl	r2r3,[r0]
 816:	1c00 30a6           	stdl	r2r3,[sp,0]
 81a:	1000 0682           	lddl	r2r3,[r0]

It's not possible to use this code in an assembler directly due to the incorrect "rNrN+1" register format:
app.cc:32: error: unknown register name 'r2r3' in 'asm'
app.cc:32: error: unknown register name 'r0r1' in 'asm'

The assembler code is with one register only (r0 or r2 only).
This inconsistency should be fixed.

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

No branches or pull requests

3 participants