Skip to content

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

@kopartm

Description

@kopartm

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions