GNU as documentation states that a .thumb_func directive implies .thumb, teach the asm parser to switch mode whenever it's encountered. On the other hand the labeled form, exclusive to Apple's toolchain, doesn't switch mode at all.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM too.
Could I trouble you to add a test case for something like:
.text .arm .thumb_func nop sym: bx lr
This just makes sure we get the nop before sym in Thumb state even though the symbol doesn't start immediately after the thumb_func.
For reference the cctools implementation of this directive can be found here, function s_thumb_func.