diff options
author | Kevin Enderby <enderby@apple.com> | 2010-03-08 22:17:26 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-03-08 22:17:26 +0000 |
commit | 0e822407b283d4334bb4506255e52bc2887786b1 (patch) | |
tree | 4d55465fbbcbbea0c893db1f0ff9d57c767959f9 | |
parent | b2b4acd757194b4b75e571ec7225811f94e753f3 (diff) | |
download | external_llvm-0e822407b283d4334bb4506255e52bc2887786b1.zip external_llvm-0e822407b283d4334bb4506255e52bc2887786b1.tar.gz external_llvm-0e822407b283d4334bb4506255e52bc2887786b1.tar.bz2 |
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.td | 2 | ||||
-rw-r--r-- | test/MC/Disassembler/simple-tests.txt | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 52aa808..4589b59 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 11c077d..b6bb35d 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 |