[llvm-commits] [llvm] r58121 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Dale Johannesen
dalej at apple.com
Fri Oct 24 15:08:02 PDT 2008
Author: johannes
Date: Fri Oct 24 17:08:01 2008
New Revision: 58121
URL: http://llvm.org/viewvc/llvm-project?rev=58121&view=rev
Log:
Mark MFCR as reading all condition code registers.
Prevents some more overzealous deletions (mostly
in AltiVec code).
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=58121&r1=58120&r2=58121&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Fri Oct 24 17:08:01 2008
@@ -1095,8 +1095,10 @@
def MTCRF : XFXForm_5<31, 144, (outs), (ins crbitm:$FXM, GPRC:$rS),
"mtcrf $FXM, $rS", BrMCRX>,
PPC970_MicroCode, PPC970_Unit_CRU;
+let Uses = [CR0, CR1, CR2, CR3, CR4, CR5, CR6, CR7] in {
def MFCR : XFXForm_3<31, 19, (outs GPRC:$rT), (ins), "mfcr $rT", SprMFCR>,
PPC970_MicroCode, PPC970_Unit_CRU;
+}
def MFOCRF: XFXForm_5a<31, 19, (outs GPRC:$rT), (ins crbitm:$FXM),
"mfcr $rT, $FXM", SprMFCR>,
PPC970_DGroup_First, PPC970_Unit_CRU;
More information about the llvm-commits
mailing list