diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-18 08:19:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-18 08:19:49 +0000 |
commit | 9e3d0b335111b2df73984a6cfd9ef1cd5d323872 (patch) | |
tree | 008e8d738626d7336b6a16aef4cf54a5cf0016b3 /utils | |
parent | 0a85771de8abb4bb25f655f13a1ae429cd99e299 (diff) | |
download | external_llvm-9e3d0b335111b2df73984a6cfd9ef1cd5d323872.zip external_llvm-9e3d0b335111b2df73984a6cfd9ef1cd5d323872.tar.gz external_llvm-9e3d0b335111b2df73984a6cfd9ef1cd5d323872.tar.bz2 |
Add X86 assembler and disassembler support for AMD SVM instructions. Original patch by Kay Tiong Khoo. Few tweaks by me for code density and to reduce replication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/EDEmitter.cpp | 2 | ||||
-rw-r--r-- | utils/TableGen/X86RecognizableInstr.cpp | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp index 8ae4202..e0fd566 100644 --- a/utils/TableGen/EDEmitter.cpp +++ b/utils/TableGen/EDEmitter.cpp @@ -519,6 +519,8 @@ static void X86ExtractSemantics( // ignore (doesn't go anywhere we know about) } else if (name.find("VMCALL") != name.npos) { // ignore (rather different semantics than a regular call) + } else if (name.find("VMMCALL") != name.npos) { + // ignore (rather different semantics than a regular call) } else if (name.find("FAR") != name.npos && name.find("i") != name.npos) { CALL("off"); } else { diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp index 385e579..e5b10a7 100644 --- a/utils/TableGen/X86RecognizableInstr.cpp +++ b/utils/TableGen/X86RecognizableInstr.cpp @@ -36,7 +36,15 @@ using namespace llvm; MAP(F8, 41) \ MAP(F9, 42) \ MAP(D0, 45) \ - MAP(D1, 46) + MAP(D1, 46) \ + MAP(D8, 47) \ + MAP(D9, 48) \ + MAP(DA, 49) \ + MAP(DB, 50) \ + MAP(DC, 51) \ + MAP(DD, 52) \ + MAP(DE, 53) \ + MAP(DF, 54) // A clone of X86 since we can't depend on something that is generated. namespace X86Local { |