[PATCH] D60927: [llvm-objdump] Switch between ARM/Thumb based on mapping symbols.
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 04:13:05 PDT 2019
peter.smith accepted this revision.
peter.smith added a comment.
This revision is now accepted and ready to land.
Thanks for the update. Looks good to me. I've made one comment about the v7r test but not knowing what the original intention behind the test was I'm not sure if it is worth changing.
================
Comment at: test/tools/llvm-objdump/ARM/v7r-subfeatures.s:3
+@ v7r implies Thumb hwdiv, but ARM hwdiv is optional
+@ FIXME: Does that imply we should actually refuse to disassemble it?
----------------
I think it depends on whether the dissassembly is supposed to be architecturally aware or not. It seems like GNU arm-none-eabi-objdump is not and will disassemble the instruction, whereas llvm-objdump is.
Strictly speaking the build-attributes are lying to objdump here as there should be:
```
.eabi_attribute Tag_DIV_use, 2 // This code was permitted to use SDIV and UDIV in the ARM and Thumb ISAs
```
If --arm-add-attributes is used then llvm-mc will put this in. With this attribute then llvm-objdump will disassemble it. I'm not entirely sure what the intention of the test is though.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60927/new/
https://reviews.llvm.org/D60927
More information about the llvm-commits
mailing list