[llvm-commits] [llvm] r145711 - /llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
Jim Grosbach
grosbach at apple.com
Fri Dec 2 14:01:26 PST 2011
Author: grosbach
Date: Fri Dec 2 16:01:25 2011
New Revision: 145711
URL: http://llvm.org/viewvc/llvm-project?rev=145711&view=rev
Log:
ARM encoder method needs the physical register number, not the enum.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp?rev=145711&r1=145710&r2=145711&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp Fri Dec 2 16:01:25 2011
@@ -1412,7 +1412,7 @@
SmallVectorImpl<MCFixup> &Fixups) const {
const MCOperand &MO = MI.getOperand(Op);
if (MO.getReg() == 0) return 0x0D;
- return MO.getReg();
+ return getARMRegisterNumbering(MO.getReg());
}
unsigned ARMMCCodeEmitter::
More information about the llvm-commits
mailing list