[llvm] r228515 - [X86] Add register use/def for wrmsr and rdmsr.
Craig Topper
craig.topper at gmail.com
Sat Feb 7 15:36:51 PST 2015
Author: ctopper
Date: Sat Feb 7 17:36:51 2015
New Revision: 228515
URL: http://llvm.org/viewvc/llvm-project?rev=228515&view=rev
Log:
[X86] Add register use/def for wrmsr and rdmsr.
Modified:
llvm/trunk/lib/Target/X86/X86InstrSystem.td
Modified: llvm/trunk/lib/Target/X86/X86InstrSystem.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSystem.td?rev=228515&r1=228514&r2=228515&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSystem.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSystem.td Sat Feb 7 17:36:51 2015
@@ -438,7 +438,9 @@ def LLDT16m : I<0x00, MRM2m, (outs), (in
//===----------------------------------------------------------------------===//
// Specialized register support
let SchedRW = [WriteSystem] in {
+let Uses = [EAX, ECX, EDX] in
def WRMSR : I<0x30, RawFrm, (outs), (ins), "wrmsr", [], IIC_WRMSR>, TB;
+let Defs = [EAX, EDX], Uses = [ECX] in
def RDMSR : I<0x32, RawFrm, (outs), (ins), "rdmsr", [], IIC_RDMSR>, TB;
let Defs = [RAX, RDX], Uses = [ECX] in
More information about the llvm-commits
mailing list