Skip to content

[SPARC] llvm-objdump doesn't recognize V9 instructions in 32-bit SPARC object files #122195

Open
@koachan

Description

@koachan

Found this while working on another thing.

reproducer:
  retl
   popc %g0, %g0 ! a V9 instruction

Assembles successfully with e.g. clang -target sparc -mcpu=v9 -c reproducer.s, but llvm-objdump doesn't recognize the popc:

$ llvm-objdump -d reproducer.o 

reproducer.o:	file format elf32-sparc

Disassembly of section .text:

00000000 <reproducer>:
       0: 81 c3 e0 08  	retl
       4: 81 70 00 00  	<unknown>

As a comparison, GNU objdump does recognize the instruction.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions