[PATCH] D30943: [ARM] Fix for branch label dissassembly for Thumb targets
Andre Vieira via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 08:07:22 PDT 2017
avieira created this revision.
Herald added subscribers: rengolin, aemerson.
different MCInstrAnalysis classes for arm and thumb mode each with their own evaluateBranch implementation.
I added a test case and fixed the coff-relocations test to use '<label>:' rather than '<label>' in the CHECK-LABEL entries, since the ones without the colon would match branch targets. Might be worth noticing that llvm-objdump does not lookup the relocation and thus assigns it a target depending on the encoded immediate which is #0, so it thinks it branches to the next instruction.
https://reviews.llvm.org/D30943
Files:
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
test/MC/ARM/branch-disassemble.s
test/MC/ARM/coff-relocations.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30943.91728.patch
Type: text/x-patch
Size: 4815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170314/de285670/attachment.bin>
More information about the llvm-commits
mailing list