1 //===-- X86InstrSVM.td - SVM Instruction Set Extension -----*- tablegen -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file describes the instructions that make up the AMD SVM instruction
12 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
17 let SchedRW = [WriteSystem] in {
19 def VMMCALL : I<0x01, MRM_D9, (outs), (ins), "vmmcall", []>, TB;
22 def STGI : I<0x01, MRM_DC, (outs), (ins), "stgi", []>, TB;
25 def CLGI : I<0x01, MRM_DD, (outs), (ins), "clgi", []>, TB;
29 def SKINIT : I<0x01, MRM_DE, (outs), (ins), "skinit", []>, TB;
33 def VMRUN32 : I<0x01, MRM_D8, (outs), (ins), "vmrun", []>, TB,
34 Requires<[Not64BitMode]>;
36 def VMRUN64 : I<0x01, MRM_D8, (outs), (ins), "vmrun", []>, TB,
37 Requires<[In64BitMode]>;
41 def VMLOAD32 : I<0x01, MRM_DA, (outs), (ins), "vmload", []>, TB,
42 Requires<[Not64BitMode]>;
44 def VMLOAD64 : I<0x01, MRM_DA, (outs), (ins), "vmload", []>, TB,
45 Requires<[In64BitMode]>;
49 def VMSAVE32 : I<0x01, MRM_DB, (outs), (ins), "vmsave", []>, TB,
50 Requires<[Not64BitMode]>;
52 def VMSAVE64 : I<0x01, MRM_DB, (outs), (ins), "vmsave", []>, TB,
53 Requires<[In64BitMode]>;
56 let Uses = [EAX, ECX] in
57 def INVLPGA32 : I<0x01, MRM_DF, (outs), (ins),
58 "invlpga", []>, TB, Requires<[Not64BitMode]>;
59 let Uses = [RAX, ECX] in
60 def INVLPGA64 : I<0x01, MRM_DF, (outs), (ins),
61 "invlpga", []>, TB, Requires<[In64BitMode]>;