[x86] SMAP: added HasSMAP attribute for CLAC/STAC, corrected attributes
[oota-llvm.git] / lib / Target / X86 / X86InstrSystem.td
index 540278021f02b4237a300db9cf848263d62accc5..92f8bae0479aae3b11b04f1869b65704f1c3fc91 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;
 }