[LLVMbugs] [Bug 2604] mfocrf definition in PPCInstrInfo.td contradicts PowerPC spec

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 11 06:57:58 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=2604

Hal Finkel <hfinkel at anl.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |hfinkel at anl.gov
         Resolution|WORKSFORME                  |

--- Comment #5 from Hal Finkel <hfinkel at anl.gov> 2012-06-11 08:57:58 CDT ---
It seems that this will have to change after all. At least in version
2.20.51.0.2, gas does not except mfcr with two operands (giving one of its
"Error: junk at end of line" diagnostics), but does accept mfocrf.

Also, according to:
http://opensource.apple.com/source/cctools/cctools-590.18/RelNotes/Private_CompilerTools.html

[begin quote]
Changes since the last release (cctools-579 for
the 5.18 Mac OS X Xcode 2.1 Developer release):
...
Changed the PowerPC assembler to accept "mtocrf" as a synonym
   for "mtcrf" and accept "mfocrf" as a synonym for "mfcr". And when
   these mnemonic is used the argument must have exactly one bit set.
   Also changed otool(1)'s disassembler to use mtocrf/mfocrf when bit
   11 is set. Radar bug #4034280.
[end quote]

So, unless I'm misinterpreting things, as of cctools-580 for the 5.18 Mac OS X
Xcode 2.1 mfocrf is supported on Darwin as well.

-- 
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