summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-03-08 22:17:26 +0000
committerKevin Enderby <enderby@apple.com>2010-03-08 22:17:26 +0000
commit0e822407b283d4334bb4506255e52bc2887786b1 (patch)
tree4d55465fbbcbbea0c893db1f0ff9d57c767959f9
parentb2b4acd757194b4b75e571ec7225811f94e753f3 (diff)
downloadllvm-0e822407b283d4334bb4506255e52bc2887786b1.tar.gz
llvm-0e822407b283d4334bb4506255e52bc2887786b1.tar.bz2
llvm-0e822407b283d4334bb4506255e52bc2887786b1.tar.xz
Fix the vmxon entry in the X86InstrInfo.td so it has the correct prefix bytes
for the encoding and is not the same as vmptrld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97992 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td2
-rw-r--r--test/MC/Disassembler/simple-tests.txt11
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 52aa8082d6..4589b59e50 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -4252,7 +4252,7 @@ def VMWRITE32rr : I<0x79, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src),
// 0F 01 C4
def VMXOFF : I<0x01, MRM_C4, (outs), (ins), "vmxoff", []>, TB;
def VMXON : I<0xC7, MRM6m, (outs), (ins i64mem:$vmxon),
- "vmxon\t{$vmxon}", []>, XD;
+ "vmxon\t{$vmxon}", []>, XS;
//===----------------------------------------------------------------------===//
// Non-Instruction Patterns
diff --git a/test/MC/Disassembler/simple-tests.txt b/test/MC/Disassembler/simple-tests.txt
index 11c077d892..b6bb35dc56 100644
--- a/test/MC/Disassembler/simple-tests.txt
+++ b/test/MC/Disassembler/simple-tests.txt
@@ -41,4 +41,13 @@
0x0f 0x01 0xf8
# CHECK: rdtscp
-0x0f 0x01 0xf9 \ No newline at end of file
+0x0f 0x01 0xf9
+
+# CHECK: vmxon
+0xf3 0x0f 0xc7 0x30
+
+# CHECK: vmptrld
+0x0f 0xc7 0x30
+
+# CHECK: vmptrst
+0x0f 0xc7 0x38