[x86] SMAP: added HasSMAP attribute for CLAC/STAC, corrected attributes
authorRobert Khasanov <rob.khasanov@gmail.com>
Thu, 21 Aug 2014 09:34:12 +0000 (09:34 +0000)
committerRobert Khasanov <rob.khasanov@gmail.com>
Thu, 21 Aug 2014 09:34:12 +0000 (09:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216163 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSystem.td

index 5402780..92f8bae 100644 (file)
@@ -563,7 +563,7 @@ def INVPCID64 : I<0x82, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
 
 //===----------------------------------------------------------------------===//
 // SMAP Instruction
-let Defs = [EFLAGS], Uses = [EFLAGS] in {
+let Predicates = [HasSMAP], Defs = [EFLAGS] in {
   def CLAC : I<0x01, MRM_CA, (outs), (ins), "clac", []>, TB;
   def STAC : I<0x01, MRM_CB, (outs), (ins), "stac", []>, TB;
 }