[llvm] r228514 - [X86] Add GETSEC instruction.
Craig Topper
craig.topper at gmail.com
Sat Feb 7 15:36:37 PST 2015
Author: ctopper
Date: Sat Feb 7 17:36:36 2015
New Revision: 228514
URL: http://llvm.org/viewvc/llvm-project?rev=228514&view=rev
Log:
[X86] Add GETSEC instruction.
Modified:
llvm/trunk/lib/Target/X86/X86InstrSystem.td
llvm/trunk/test/MC/Disassembler/X86/x86-32.txt
llvm/trunk/test/MC/X86/x86-32-coverage.s
Modified: llvm/trunk/lib/Target/X86/X86InstrSystem.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSystem.td?rev=228514&r1=228513&r2=228514&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSystem.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSystem.td Sat Feb 7 17:36:36 2015
@@ -577,3 +577,9 @@ let Defs = [EFLAGS] in {
def CLAC : I<0x01, MRM_CA, (outs), (ins), "clac", []>, TB;
def STAC : I<0x01, MRM_CB, (outs), (ins), "stac", []>, TB;
}
+
+//===----------------------------------------------------------------------===//
+// SMX Instruction
+let Uses = [RAX, RBX, RCX, RDX], Defs = [RAX, RBX, RCX] in {
+ def GETSEC : I<0x37, RawFrm, (outs), (ins), "getsec", []>, TB;
+}
Modified: llvm/trunk/test/MC/Disassembler/X86/x86-32.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/X86/x86-32.txt?rev=228514&r1=228513&r2=228514&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/X86/x86-32.txt (original)
+++ llvm/trunk/test/MC/Disassembler/X86/x86-32.txt Sat Feb 7 17:36:36 2015
@@ -761,3 +761,6 @@
0x82 0x35 0x38 0x87 0x50 0x00 0x26
# CHECK: cmpb $38, 5277496
0x82 0x3d 0x38 0x87 0x50 0x00 0x26
+
+#CHECK: getsec
+0x0f 0x37
Modified: llvm/trunk/test/MC/X86/x86-32-coverage.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86-32-coverage.s?rev=228514&r1=228513&r2=228514&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/x86-32-coverage.s (original)
+++ llvm/trunk/test/MC/X86/x86-32-coverage.s Sat Feb 7 17:36:36 2015
@@ -10738,3 +10738,7 @@ btcq $4, (%eax)
// CHECK: xrstors 305419896
// CHECK: encoding: [0x0f,0xc7,0x1d,0x78,0x56,0x34,0x12]
xrstors 0x12345678
+
+// CHECK: getsec
+// CHECK: encoding: [0x0f,0x37]
+ getsec
More information about the llvm-commits
mailing list