Home
last modified time | relevance | path

Searched refs:immediate (Results 1 – 7 of 7) sorted by relevance

/art/compiler/utils/arm/
Dassembler_arm.cc156 uint32_t immediate, ShifterOperand* shifter_op) { in CanHoldThumb() argument
158 shifter_op->immed_ = immediate; in CanHoldThumb()
166 return immediate < (1 << 9); // 9 bits allowed. in CanHoldThumb()
168 return immediate < (1 << 12); // 12 bits. in CanHoldThumb()
171 if (immediate < (1 << 12)) { // Less than (or equal to) 12 bits can always be done. in CanHoldThumb()
174 return ArmAssembler::ModifiedImmediate(immediate) != kInvalidModifiedImmediate; in CanHoldThumb()
178 return ArmAssembler::ModifiedImmediate(immediate) != kInvalidModifiedImmediate; in CanHoldThumb()
181 return ArmAssembler::ModifiedImmediate(immediate) != kInvalidModifiedImmediate; in CanHoldThumb()
Dassembler_thumb2.cc828 uint8_t immediate = 0; in Emit16BitDataProcessing() local
836 immediate = so.GetImmediate(); in Emit16BitDataProcessing()
859 immediate = so.GetImmediate(); in Emit16BitDataProcessing()
932 (use_immediate ? (immediate << immediate_shift) : 0); in Emit16BitDataProcessing()
951 uint8_t immediate = 0; in Emit16BitAddSub() local
956 immediate = so.GetImmediate(); in Emit16BitAddSub()
976 immediate = static_cast<uint32_t>(so.GetRegister()); in Emit16BitAddSub()
987 CHECK_LT(immediate, (1 << 9)); in Emit16BitAddSub()
988 CHECK_EQ((immediate & 0b11), 0); in Emit16BitAddSub()
995 immediate >>= 2; in Emit16BitAddSub()
[all …]
Dassembler_arm.h105 static bool CanHoldArm(uint32_t immediate, ShifterOperand* shifter_op) { in CanHoldArm() argument
107 if (immediate < (1 << kImmed8Bits)) { in CanHoldArm()
111 shifter_op->immed_ = immediate; in CanHoldArm()
116 uint32_t imm8 = (immediate << 2*rot) | (immediate >> (32 - 2*rot)); in CanHoldArm()
129 uint32_t immediate, ShifterOperand* shifter_op);
/art/compiler/utils/x86/
Dassembler_x86.cc816 void X86Assembler::testl(Register reg, const Immediate& immediate) { in testl() argument
820 if (immediate.is_uint8() && reg < 4) { in testl()
828 EmitUint8(immediate.value() & 0xFF); in testl()
832 EmitImmediate(immediate); in testl()
836 EmitImmediate(immediate); in testl()
1346 const Immediate& immediate) { in EmitComplex() argument
1349 if (immediate.is_int8()) { in EmitComplex()
1353 EmitUint8(immediate.value() & 0xFF); in EmitComplex()
1357 EmitImmediate(immediate); in EmitComplex()
1361 EmitImmediate(immediate); in EmitComplex()
Dassembler_x86.h584 void EmitComplex(int rm, const Operand& operand, const Immediate& immediate);
/art/compiler/utils/x86_64/
Dassembler_x86_64.cc927 void X86_64Assembler::testl(CpuRegister reg, const Immediate& immediate) { in testl() argument
931 if (immediate.is_uint8() && reg.AsRegister() < 4) { in testl()
939 EmitUint8(immediate.value() & 0xFF); in testl()
943 EmitImmediate(immediate); in testl()
948 EmitImmediate(immediate); in testl()
1546 const Immediate& immediate) { in EmitComplex() argument
1549 if (immediate.is_int8()) { in EmitComplex()
1553 EmitUint8(immediate.value() & 0xFF); in EmitComplex()
1557 EmitImmediate(immediate); in EmitComplex()
1561 EmitImmediate(immediate); in EmitComplex()
Dassembler_x86_64.h628 void EmitComplex(uint8_t rm, const Operand& operand, const Immediate& immediate);