[Thumb2] Improve disassembly of memory hints
authorOliver Stannard <oliver.stannard@arm.com>
Thu, 23 Oct 2014 08:52:58 +0000 (08:52 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Thu, 23 Oct 2014 08:52:58 +0000 (08:52 +0000)
commit39a85abddf414a38577a4a2a89076ef96883fa13
tree60d242e0e9a131b84d8aebd6cc44f5ab49cecf2e
parent83fb578e4e6f0a8c095f6e4ed0ccd7439a41c7cc
[Thumb2] Improve disassembly of memory hints

Currently, the ARM disassembler will disassemble the Thumb2 memory hint
instructions (PLD, PLDW and PLI), even for targets which do not have
these instructions. This patch adds the required checks to the
disassmebler.

llvm-svn: 220472
llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
llvm/test/MC/Disassembler/ARM/thumb2-preloads.txt [new file with mode: 0644]