Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 16 of 16) sorted by relevance

/dalvik/vm/compiler/codegen/x86/libenc/
Dencoder.inl98 inline static void add_imm(EncoderBase::Operands & args, const Imm_Opnd & imm) { argument
99 assert(n_size != imm.get_size());
100 args.add(EncoderBase::Operand(map_size(imm.get_size()), imm.get_value(),
101 imm.is_signed() ? OpndExt_Signed : OpndExt_Zero));
116 ENCODER_DECLARE_EXPORT char * push(char * stream, const Imm_Opnd & imm) { argument
119 add_imm(args, imm);
122 add_imm(args, Imm_Opnd(size_32, imm.get_value()));
186 …char * alu(char * stream, ALU_Opcode opc, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Size sz) { argument
189 add_imm(args, imm);
208 ENCODER_DECLARE_EXPORT char * test(char * stream, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Si… argument
[all …]
Dencoder.h469 ENCODER_DECLARE_EXPORT char * push(char * stream, const Imm_Opnd & imm);
485 … * alu(char * stream, ALU_Opcode opc, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Size sz = siz…
490 ENCODER_DECLARE_EXPORT char * test(char * stream, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Si…
494 …hift(char * stream, Shift_Opcode opc, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Size sz = siz…
496 …, Shift_Opcode opc, const RM_Opnd & rm, const R_Opnd & r, const Imm_Opnd & imm, Opnd_Size sz = siz…
502 ENCODER_DECLARE_EXPORT char * imul(char * stream, const R_Opnd & r, const Imm_Opnd & imm, Opnd_Size…
503 … imul(char * stream, const R_Opnd & r, const RM_Opnd & rm, const Imm_Opnd& imm, Opnd_Size sz = siz…
511 ENCODER_DECLARE_EXPORT char * mov(char * stream, const RM_Opnd & rm, const Imm_Opnd & imm, Opnd_Siz…
566 ENCODER_DECLARE_EXPORT char * loop(char * stream, const Imm_Opnd & imm);
569 ENCODER_DECLARE_EXPORT char * jump8(char * stream, const Imm_Opnd & imm);
[all …]
Denc_wrapper.h177 int imm, char* stream);
179 ENCODER_DECLARE_EXPORT char* encoder_update_imm(int imm, char * stream);
211 int imm, int reg, bool isPhysical, LowOpndRegType type, char* stream);
212 ENCODER_DECLARE_EXPORT char * encoder_update_imm_rm(int imm, char * stream);
214 int imm,
Denc_wrapper.cpp106 (int)opnd.imm()); in printOperand()
159 extern "C" ENCODER_DECLARE_EXPORT char * encoder_imm(Mnemonic m, OpndSize size, int imm, char * str… in encoder_imm() argument
162 add_imm(args, size, imm, true/*is_signed*/); in encoder_imm()
182 extern "C" ENCODER_DECLARE_EXPORT char * encoder_update_imm(int imm, char * stream) { in encoder_update_imm() argument
187 add_imm(args, decInst.operands[0].size(), imm, true/*is_signed*/); in encoder_update_imm()
345 int imm, int reg, bool isPhysical, LowOpndRegType type, char * stream) { in encoder_imm_reg() argument
351 add_imm(args, OpndSize_8, imm, true/*is_signed*/); in encoder_imm_reg()
353 add_imm(args, size, imm, true/*is_signed*/); in encoder_imm_reg()
362 extern "C" ENCODER_DECLARE_EXPORT char * encoder_update_imm_rm(int imm, char * stream) { in encoder_update_imm_rm() argument
367 add_imm(args, decInst.operands[1].size(), imm, true/*is_signed*/); in encoder_update_imm_rm()
[all …]
Denc_base.cpp213 *(unsigned char*)stream = (unsigned char)opnds[idx].imm(); in encode_aux()
218 *(unsigned short*)stream = (unsigned short)opnds[idx].imm(); in encode_aux()
223 *(unsigned*)stream = (unsigned)opnds[idx].imm(); in encode_aux()
230 *(long long*)stream = (long long)opnds[idx].imm(); in encode_aux()
243 *(unsigned char*)stream = (unsigned char)opnds[*pargsCount].imm(); in encode_aux()
250 *(unsigned short*)stream = (unsigned short)opnds[*pargsCount].imm(); in encode_aux()
257 *(unsigned*)stream = (unsigned)opnds[*pargsCount].imm(); in encode_aux()
400 assert(original.imm() == decoded.imm()); in encode()
Denc_base.h481 long long imm(void) const { return is_imm() ? m_imm64 : 0; } in imm() function
/dalvik/vm/compiler/codegen/x86/
DLower.h620 void load_int_fp_stack_imm(OpndSize size, int imm);
639 void compare_imm_reg(OpndSize size, int imm,
641 void compare_imm_mem(OpndSize size, int imm,
643 void compare_imm_VR(OpndSize size, int imm,
658 void test_imm_reg(OpndSize size, int imm, int reg, bool isPhysical);
659 void test_imm_mem(OpndSize size, int imm, int disp, int reg, bool isPhysical);
692 int imm, int disp, int base_reg, bool isBasePhysical);
693 void alu_binary_imm_reg(OpndSize size, ALU_Opcode opc, int imm, int reg, bool isPhysical);
757 void move_imm_to_mem(OpndSize size, int imm,
759 void set_VR_to_imm(u2 vA, OpndSize size, int imm);
[all …]
DLowerHelper.cpp226 LowOpImm* dump_special(AtomOpCode cc, int imm) { in dump_special() argument
232 op->immOpnd.value = imm; in dump_special()
237 LowOpLabel* lower_label(Mnemonic m, OpndSize size, int imm, const char* label, bool isLocal) { in lower_label() argument
238 stream = encoder_imm(m, size, imm, stream); in lower_label()
242 LowOpLabel* dump_label(Mnemonic m, OpndSize size, int imm, in dump_label() argument
244 return lower_label(m, size, imm, label, isLocal); in dump_label()
247 LowOpNCG* dump_ncg(Mnemonic m, OpndSize size, int imm) { in dump_ncg() argument
248 stream = encoder_imm(m, size, imm, stream); in dump_ncg()
255 LowOpImm* lower_imm(Mnemonic m, OpndSize size, int imm, bool updateTable) { in lower_imm() argument
256 stream = encoder_imm(m, size, imm, stream); in lower_imm()
[all …]
DLowerAlu.cpp767 int common_alu_int_lit(ALU_Opcode opc, u2 vA, u2 vB, s2 imm) { //except div and rem in common_alu_int_lit() argument
769 alu_binary_imm_reg(OpndSize_32, opc, imm, 1, false); in common_alu_int_lit()
774 int common_shift_int_lit(ALU_Opcode opc, u2 vA, u2 vB, s2 imm) { in common_shift_int_lit() argument
775 return common_alu_int_lit(opc, vA, vB, imm); in common_shift_int_lit()
790 int alu_rsub_int(ALU_Opcode opc, u2 vA, s2 imm, u2 vB) { in alu_rsub_int() argument
791 move_imm_to_reg(OpndSize_32, imm, 2, false); in alu_rsub_int()
987 int isPowerOfTwo(int imm) { in isPowerOfTwo() argument
990 if(imm == (1 << i)) return i; in isPowerOfTwo()
996 int div_lit_strength_reduction(u2 vA, u2 vB, s2 imm) { in div_lit_strength_reduction() argument
999 int power = isPowerOfTwo(imm); in div_lit_strength_reduction()
[all …]
DLowerJump.cpp539 int imm = 0; in conditional_jump() local
540 imm = getRelativeOffset(target, isShortTerm, JmpCall_cond, &unknown, &size); in conditional_jump()
541 dump_label(m, size, imm, target, isShortTerm); in conditional_jump()
574 int imm = 0; in unconditional_jump() local
575 imm = getRelativeOffset(target, isShortTerm, JmpCall_uncond, &unknown, &size); in unconditional_jump()
576 dump_label(m, size, imm, target, isShortTerm); in unconditional_jump()
/dalvik/vm/mterp/mips/
Dheader.S272 #define LOAD_IMM(dest, imm) li dest, imm argument
/dalvik/vm/compiler/template/mips/
Dheader.S331 #define LOAD_IMM(dest, imm) li dest, imm argument
/dalvik/vm/compiler/codegen/mips/
DAssemble.cpp2186 int imm = (insn >> 6) & 0x1F; in dvmSelfVerificationMemOpDecode() local
2264 offset = imm << 2; in dvmSelfVerificationMemOpDecode()
2268 offset = imm << 1; in dvmSelfVerificationMemOpDecode()
2272 offset = imm; in dvmSelfVerificationMemOpDecode()
/dalvik/vm/compiler/codegen/arm/
DAssemble.cpp2805 int imm = (insn >> 6) & 0x1F; in dvmSelfVerificationMemOpDecode() local
2883 offset = imm << 2; in dvmSelfVerificationMemOpDecode()
2887 offset = imm << 1; in dvmSelfVerificationMemOpDecode()
2891 offset = imm; in dvmSelfVerificationMemOpDecode()
/dalvik/vm/compiler/template/out/
DCompilerTemplateAsm-mips.S338 #define LOAD_IMM(dest, imm) li dest, imm argument
/dalvik/vm/mterp/out/
DInterpAsm-mips.S279 #define LOAD_IMM(dest, imm) li dest, imm argument