1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

JIT imm12 encoding for constant pool entry references.

llvm-svn: 117483
This commit is contained in:
Jim Grosbach 2010-10-27 20:39:40 +00:00
parent cdc8dff3ac
commit db7ba38ca4

View File

@ -181,6 +181,10 @@ namespace {
// {11-0} = imm12
const MachineOperand &MO = MI.getOperand(Op);
const MachineOperand &MO1 = MI.getOperand(Op + 1);
if (!MO.isReg()) {
emitConstPoolAddress(MO.getIndex(), ARM::reloc_arm_cp_entry);
return 0;
}
unsigned Reg = getARMRegisterNumbering(MO.getReg());
int32_t Imm12 = MO1.getImm();
uint32_t Binary;