[llvm-commits] [llvm] r134126 - in /llvm/trunk: lib/Target/X86/X86InstrSystem.td test/MC/X86/padlock.s

Joerg Sonnenberger joerg at bec.de
Wed Jun 29 18:38:03 PDT 2011


Author: joerg
Date: Wed Jun 29 20:38:03 2011
New Revision: 134126

URL: http://llvm.org/viewvc/llvm-project?rev=134126&view=rev
Log:
Recognize the xstorerng alias for VIA PadLock's xstore instruction.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrSystem.td
    llvm/trunk/test/MC/X86/padlock.s

Modified: llvm/trunk/lib/Target/X86/X86InstrSystem.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSystem.td?rev=134126&r1=134125&r2=134126&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSystem.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSystem.td Wed Jun 29 20:38:03 2011
@@ -411,6 +411,8 @@
 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;

Modified: llvm/trunk/test/MC/X86/padlock.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/padlock.s?rev=134126&r1=134125&r2=134126&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/padlock.s (original)
+++ llvm/trunk/test/MC/X86/padlock.s Wed Jun 29 20:38:03 2011
@@ -4,6 +4,10 @@
 // CHECK: xstore
 // CHECK: encoding: [0x0f,0xa7,0xc0]
 
+	xstorerng
+// CHECK: xstore
+// CHECK: encoding: [0x0f,0xa7,0xc0]
+
 	rep xcryptecb
 // CHECK: rep
 // CHECK: encoding: [0xf3]





More information about the llvm-commits mailing list