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

llvm-objdump does not recognize some armv7 instructions accepted by clang #90507

Open
VoxSciurorum opened this issue Apr 29, 2024 · 3 comments
Open

Comments

@VoxSciurorum
Copy link

If I assemble this file with clang -c -mcpu=cortex-a7 -target armv7-gnueabihf undef.s

msr elr_hyp, lr
eret

llvm-objdump does not recognize instructions in the resulting object:

undef.o:	file format elf32-littlearm

Disassembly of section .text:

00000000 <.text>:
       0: e12ef30e     	<unknown>
       4: e160006e     	<unknown>
@github-actions github-actions bot added the clang Clang issues not falling into any other category label Apr 29, 2024
@EugeneZelenko EugeneZelenko added backend:ARM tools:llvm-objdump and removed clang Clang issues not falling into any other category labels Apr 29, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Apr 29, 2024

@llvm/issue-subscribers-backend-arm

Author: John F. Carr (VoxSciurorum)

If I assemble this file with `clang -c -mcpu=cortex-a7 -target armv7-gnueabihf undef.s` ``` msr elr_hyp, lr eret ``` llvm-objdump does not recognize instructions in the resulting object: ``` undef.o: file format elf32-littlearm

Disassembly of section .text:

00000000 <.text>:
0: e12ef30e <unknown>
4: e160006e <unknown>

</details>

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 29, 2024

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

Author: John F. Carr (VoxSciurorum)

If I assemble this file with `clang -c -mcpu=cortex-a7 -target armv7-gnueabihf undef.s` ``` msr elr_hyp, lr eret ``` llvm-objdump does not recognize instructions in the resulting object: ``` undef.o: file format elf32-littlearm

Disassembly of section .text:

00000000 <.text>:
0: e12ef30e <unknown>
4: e160006e <unknown>

</details>

@svs-quic
Copy link
Contributor

Works for me. Are you passing the --mcpu=cortex-a7 flag to objdump ?

bin/llvm-objdump -d --mcpu=cortex-a7 arm.o

arm.o:	file format elf32-littlearm

Disassembly of section .text:

00000000 <.text>:
       0: e12ef30e     	msr	elr_hyp, lr
       4: e160006e     	eret

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

4 participants