1 //===-- X86InstrSVM.td - SVM Instruction Set Extension -----*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file describes the instructions that make up the AMD SVM instruction
13 //===----------------------------------------------------------------------===//
15 //===----------------------------------------------------------------------===//
18 let SchedRW = [WriteSystem] in {
20 def VMMCALL : I<0x01, MRM_D9, (outs), (ins), "vmmcall", []>, TB;
23 def STGI : I<0x01, MRM_DC, (outs), (ins), "stgi", []>, TB;
26 def CLGI : I<0x01, MRM_DD, (outs), (ins), "clgi", []>, TB;
30 def SKINIT : I<0x01, MRM_DE, (outs), (ins), "skinit\t{%eax|eax}", []>, TB;
34 def VMRUN32 : I<0x01, MRM_D8, (outs), (ins), "vmrun\t{%eax|eax}", []>, TB,
35 Requires<[Not64BitMode]>;
37 def VMRUN64 : I<0x01, MRM_D8, (outs), (ins), "vmrun\t{%rax|rax}", []>, TB,
38 Requires<[In64BitMode]>;
42 def VMLOAD32 : I<0x01, MRM_DA, (outs), (ins), "vmload\t{%eax|eax}", []>, TB,
43 Requires<[Not64BitMode]>;
45 def VMLOAD64 : I<0x01, MRM_DA, (outs), (ins), "vmload\t{%rax|rax}", []>, TB,
46 Requires<[In64BitMode]>;
50 def VMSAVE32 : I<0x01, MRM_DB, (outs), (ins), "vmsave\t{%eax|eax}", []>, TB,
51 Requires<[Not64BitMode]>;
53 def VMSAVE64 : I<0x01, MRM_DB, (outs), (ins), "vmsave\t{%rax|rax}", []>, TB,
54 Requires<[In64BitMode]>;
57 let Uses = [EAX, ECX] in
58 def INVLPGA32 : I<0x01, MRM_DF, (outs), (ins),
59 "invlpga\t{%eax, %ecx|eax, ecx}", []>, TB, Requires<[Not64BitMode]>;
60 let Uses = [RAX, ECX] in
61 def INVLPGA64 : I<0x01, MRM_DF, (outs), (ins),
62 "invlpga\t{%rax, %ecx|rax, ecx}", []>, TB, Requires<[In64BitMode]>;