[LLVMbugs] [Bug 2604] New: mfocrf definition in PPCInstrInfo. td contradicts PowerPC spec
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jul 28 13:13:52 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2604
Summary: mfocrf definition in PPCInstrInfo.td contradicts PowerPC
spec
Product: libraries
Version: 2.3
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: PowerPC
AssignedTo: unassignedbugs at nondot.org
ReportedBy: maxburke at gmail.com
CC: llvmbugs at cs.uiuc.edu
The definition for the "mfocrf" instruction in PPCInstrInfo.td appears to be
incorrect:
def MFOCRF: XFXForm_5a<31, 19, (outs GPRC:$rT), (ins crbitm:$FXM),
"mfcr $rT, $FXM", SprMFCR>,
According to the PowerPC programming environment manual, there is only one form
of mfcr which takes only a destination register as a parameter. This should
read as follows:
def MFOCRF: XFXForm_5a<31, 19, (outs GPRC:$rT), (ins crbitm:$FXM),
"mfocrf $rT, $FXM", SprMFCR>,
Reference link:
http://publib.boulder.ibm.com/infocenter/systems/topic/com.ibm.aix.aixassem/doc/alangref/mfocrf.htm
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list