aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/ELF/Object.cpp
diff options
context:
space:
mode:
authorLuo, Yuanke <yuanke.luo@intel.com>2021-06-10 22:50:20 +0800
committerLuo, Yuanke <yuanke.luo@intel.com>2021-06-13 09:08:40 +0800
commit9eb2f723c24523194b833779d20b027bf89a4f55 (patch)
tree677edb7d2b4cd6f74d37d5c0562ad174abc6298a /llvm/tools/llvm-objcopy/ELF/Object.cpp
parent49f4a58d53c72abee6da3443028fff6bb2d8fe35 (diff)
downloadllvm-9eb2f723c24523194b833779d20b027bf89a4f55.zip
llvm-9eb2f723c24523194b833779d20b027bf89a4f55.tar.gz
llvm-9eb2f723c24523194b833779d20b027bf89a4f55.tar.bz2
[X86] Check immediate before get it.
For CMP imm instruction, when the operand 1 is symbol address we should check if it is immediate first. Here is the example code. `CMP64mi32 $noreg, 8, killed renamable $rcx, @d, $noreg, @a, implicit-def $eflags` Many thanks to Craig, Topper for the test case to reproduce this issue. Differential Revision: https://reviews.llvm.org/D104037
Diffstat (limited to 'llvm/tools/llvm-objcopy/ELF/Object.cpp')
0 files changed, 0 insertions, 0 deletions