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

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

Open
koachan opened this issue Jan 8, 2025 · 1 comment

Comments

@koachan
Copy link
Contributor

koachan commented Jan 8, 2025

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.

@llvmbot
Copy link
Member

llvmbot commented Jan 8, 2025

@llvm/issue-subscribers-tools-llvm-objdump

Author: Koakuma (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 &lt;reproducer&gt;:
       0: 81 c3 e0 08  	retl
       4: 81 70 00 00  	&lt;unknown&gt;

As a comparison, GNU objdump does recognize the instruction.

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

2 participants