summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-04-05 18:20:14 +0000
committerCraig Topper <craig.topper@intel.com>2018-04-05 18:20:14 +0000
commit665f74414d83118e5682e379d5acadfc86341d25 (patch)
tree94ec4ea87f17b0c0939d86c3b53b42326b08945a /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent5ca44e318fc08270c8906adc1119dee2cc2d0b3a (diff)
downloadbcm5719-llvm-665f74414d83118e5682e379d5acadfc86341d25.tar.gz
bcm5719-llvm-665f74414d83118e5682e379d5acadfc86341d25.zip
[X86] Disassembler support for having an ADSIZE prefix affect instructions with 0xf2 and 0xf3 prefixes.
Needed to support umonitor from D45253. llvm-svn: 329327
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index 5811528f186..94452b2c9d8 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -324,6 +324,10 @@ InstructionContext RecognizableInstr::insnContext() const {
insnContext = IC_XD_OPSIZE;
else if (OpSize == X86Local::OpSize16 && OpPrefix == X86Local::XS)
insnContext = IC_XS_OPSIZE;
+ else if (AdSize == X86Local::AdSize16 && OpPrefix == X86Local::XD)
+ insnContext = IC_XD_ADSIZE;
+ else if (AdSize == X86Local::AdSize16 && OpPrefix == X86Local::XS)
+ insnContext = IC_XS_ADSIZE;
else if (OpSize == X86Local::OpSize16 && AdSize == X86Local::AdSize16)
insnContext = IC_OPSIZE_ADSIZE;
else if (OpSize == X86Local::OpSize16 || OpPrefix == X86Local::PD)
OpenPOWER on IntegriCloud