aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-05-17 13:05:28 +0000
committerRenato Golin <renato.golin@linaro.org>2016-05-17 13:05:28 +0000
commit57bfb69aa43351d86cfb1c0cd6d045532cac9a1e (patch)
tree8f285493afca8db8c7be3237ec8ab9504f33e582 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parente7c583e06ffc9cc203da6ba20a463c84cc79dbe7 (diff)
downloadllvm-57bfb69aa43351d86cfb1c0cd6d045532cac9a1e.zip
llvm-57bfb69aa43351d86cfb1c0cd6d045532cac9a1e.tar.gz
llvm-57bfb69aa43351d86cfb1c0cd6d045532cac9a1e.tar.bz2
[ARM] ARM mov InstAlias for MOVW lacks HasV6T2
The movw instruction is only available in ARM state for V6T2 and above. The MOVi16 instruction has requirement HasV6T2 but the InstAlias for mov rd, imm where the operand is imm0_65535_expr:$imm does not. This means that movw can incorrectly be used in ARMv4 and ARMv5 by writing mov rd, 0x1234. The simple fix is to the requirement HasV6T2 to the InstAlias. Tests added to not-armv4.s. Patch by Peter Smith. llvm-svn: 269761
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions