[X86] Change XRSTOR to use PS instead of TB to match XSAVE.
authorCraig Topper <craig.topper@intel.com>
Mon, 23 Oct 2017 16:11:33 +0000 (16:11 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 23 Oct 2017 16:11:33 +0000 (16:11 +0000)
I don't think this changes anything functionally yet, but I plan to fix the disassembler to use this to disable matching certain instructions with 0xf3/0xf2/0x66 prefixes.

llvm-svn: 316337

llvm/lib/Target/X86/X86InstrSystem.td

index 2407ced..86b3f21 100644 (file)
@@ -512,10 +512,10 @@ let Predicates = [HasXSAVE] in {
                    [(int_x86_xsave64 addr:$dst, EDX, EAX)]>, PS, Requires<[In64BitMode]>;
   def XRSTOR : I<0xAE, MRM5m, (outs), (ins opaque512mem:$dst),
                  "xrstor\t$dst",
-                 [(int_x86_xrstor addr:$dst, EDX, EAX)]>, TB;
+                 [(int_x86_xrstor addr:$dst, EDX, EAX)]>, PS;
   def XRSTOR64 : RI<0xAE, MRM5m, (outs), (ins opaque512mem:$dst),
                     "xrstor64\t$dst",
-                    [(int_x86_xrstor64 addr:$dst, EDX, EAX)]>, TB, Requires<[In64BitMode]>;
+                    [(int_x86_xrstor64 addr:$dst, EDX, EAX)]>, PS, Requires<[In64BitMode]>;
 }
 let Predicates = [HasXSAVEOPT] in {
   def XSAVEOPT : I<0xAE, MRM6m, (outs), (ins opaque512mem:$dst),