Recognize the xstorerng alias for VIA PadLock's xstore instruction.
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 30 Jun 2011 01:38:03 +0000 (01:38 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 30 Jun 2011 01:38:03 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134126 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSystem.td
test/MC/X86/padlock.s

index f73cff39e86d45132791b15ed817996dc9cb7506..31de878343ef6aed2e95bc67f8cd73d6a417bb29 100644 (file)
@@ -411,6 +411,8 @@ let Uses = [RDX, RAX, RCX] in
 let Defs = [RAX, RDI], Uses = [RDX, RDI] in
   def XSTORE : I<0xc0, RawFrm, (outs), (ins), "xstore", []>, A7;
 
+def : InstAlias<"xstorerng", (XSTORE)>;
+
 let Defs = [RSI, RDI], Uses = [RBX, RDX, RSI, RDI] in {
   def XCRYPTECB : I<0xc8, RawFrm, (outs), (ins), "xcryptecb", []>, A7;
   def XCRYPTCBC : I<0xd0, RawFrm, (outs), (ins), "xcryptcbc", []>, A7;
index 874786f9071d1d57d7f7109a447043ec35222c29..5c523e7f68c0e7caf4a13aff9bcd1f234b328ecd 100644 (file)
@@ -2,6 +2,10 @@
 
        xstore
 // CHECK: xstore
+// CHECK: encoding: [0x0f,0xa7,0xc0]
+
+       xstorerng
+// CHECK: xstore
 // CHECK: encoding: [0x0f,0xa7,0xc0]
 
        rep xcryptecb