[llvm-commits] [llvm] r56181 - /llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Fri Sep 12 18:38:29 PDT 2008
Author: evancheng
Date: Fri Sep 12 20:38:29 2008
New Revision: 56181
URL: http://llvm.org/viewvc/llvm-project?rev=56181&view=rev
Log:
Rely on instruction format to determine so_reg operand for now.
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp?rev=56181&r1=56180&r2=56181&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Fri Sep 12 20:38:29 2008
@@ -372,7 +372,11 @@
}
// Encode shifter operand.
- if (TID.getNumOperands() - OpIdx > 1)
+ bool HasSoReg = (Format == ARMII::DPRdSoReg ||
+ Format == ARMII::DPRnSoReg ||
+ Format == ARMII::DPRSoReg ||
+ Format == ARMII::DPRSoRegS);
+ if (HasSoReg)
// Encode SoReg.
return Binary | getMachineSoRegOpValue(MI, TID, OpIdx);
More information about the llvm-commits
mailing list