Home
last modified time | relevance | path

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

/system/core/libpixelflinger/codeflinger/
DArm64Assembler.cpp366 int imm = mAddrMode.immediate; in dataProcessingCommon() local
367 *mPC++ = A64_MOVZ_W(mTmpReg2, imm & 0x0000FFFF, 0); in dataProcessingCommon()
368 *mPC++ = A64_MOVK_W(mTmpReg2, (imm >> 16) & 0x0000FFFF, 16); in dataProcessingCommon()
484 int imm = mAddrMode.immediate; in ADDR_ADD() local
485 *mPC++ = A64_MOVZ_W(mTmpReg1, imm & 0x0000FFFF, 0); in ADDR_ADD()
486 *mPC++ = A64_MOVK_W(mTmpReg1, (imm >> 16) & 0x0000FFFF, 16); in ADDR_ADD()
587 int imm = mAddrMode.immediate; in dataTransfer() local
588 if(imm >= 0 && imm < (1<<12)) in dataTransfer()
589 *mPC++ = A64_ADD_IMM_X(mTmpReg1, mZeroReg, imm, 0); in dataTransfer()
590 else if(imm < 0 && -imm < (1<<12)) in dataTransfer()
[all …]
DARMAssembler.cpp458 uint32_t immediate, uint32_t& rot, uint32_t& imm) in buildImmediate() argument
461 imm = immediate; in buildImmediate()
462 if (imm > 0x7F) { // skip the easy cases in buildImmediate()
463 while (!(imm&3) || (imm&0xFC000000)) { in buildImmediate()
465 newval = imm >> 2; in buildImmediate()
466 newval |= (imm&3) << 30; in buildImmediate()
467 imm = newval; in buildImmediate()
477 if (imm>=0x100) in buildImmediate()
480 if (((imm>>(rot<<1)) | (imm<<(32-(rot<<1)))) != immediate) in buildImmediate()
490 uint32_t rot, imm; in isValidImmediate() local
[all …]
Dtexturing.cpp163 parts.iterated.reg, imm(0xFF)); in init_iterated_color()
523 SUB(AL, 0, u, u, imm(1<<(FRAC_BITS-1))); in build_textures()
524 SUB(AL, 0, v, v, imm(1<<(FRAC_BITS-1))); in build_textures()
527 AND(AL, 0, U, u, imm((1<<FRAC_BITS)-1)); in build_textures()
528 AND(AL, 0, V, v, imm((1<<FRAC_BITS)-1)); in build_textures()
531 SUB(AL, 0, width, width, imm(1)); in build_textures()
532 SUB(AL, 0, height, height, imm(1)); in build_textures()
541 MOV(LT, 0, width, imm(1 << shift)); in build_textures()
544 RSB(GE, 0, width, width, imm(0)); in build_textures()
561 MOV(LE, 0, width, imm(0)); in build_textures()
[all …]
Dmips_disassem.c376 print_addr(loc + 4 + ((short)i.IType.imm << 2)); in db_disasm_insn()
485 db_printf("%d(%s)", (short)i.IType.imm, in db_disasm_insn()
494 i.IType.imm); in db_disasm_insn()
502 i.IType.imm); in db_disasm_insn()
508 i.IType.imm); in db_disasm_insn()
515 i.IType.imm, in db_disasm_insn()
526 (short)i.IType.imm); in db_disasm_insn()
534 (short)i.IType.imm); in db_disasm_insn()
DArm64Assembler.h80 virtual int buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm);
82 virtual uint32_t imm(uint32_t immediate);
210 uint32_t imm, uint32_t shift = 0);
212 uint32_t imm, uint32_t shift = 0);
228 uint32_t A64_MOVZ_W(uint32_t Rd, uint32_t imm, uint32_t shift);
229 uint32_t A64_MOVZ_X(uint32_t Rd, uint32_t imm, uint32_t shift);
230 uint32_t A64_MOVK_W(uint32_t Rd, uint32_t imm, uint32_t shift);
DMIPSAssembler.h65 virtual int buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm);
67 virtual uint32_t imm(uint32_t immediate);
273 void ADDIU(int Rt, int Rs, int16_t imm);
275 void SUBIU(int Rt, int Rs, int16_t imm);
294 void SLTI(int Rt, int Rs, int16_t imm);
296 void SLTIU(int Rt, int Rs, int16_t imm);
305 void ANDI(int Rd, int Rs, uint16_t imm);
307 void ORI(int Rt, int Rs, uint16_t imm);
311 void XORI(int Rt, int Rs, uint16_t imm);
Dblending.cpp56 CMP(AL, factor.reg, imm( 0x10000 )); in build_fog()
57 MOV(HS, 0, factor.reg, imm( 0x10000 )); in build_fog()
298 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s))); in build_blend_factor()
365 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s))); in build_blend_factor()
658 CMP(AL, v.reg, imm( 1<<v.h )); in component_sat()
660 MOV(HS, 0, v.reg, imm( one )); in component_sat()
662 MVN(HS, 0, v.reg, imm( ~one )); in component_sat()
664 MOV(HS, 0, v.reg, imm( 1<<v.h )); in component_sat()
665 SUB(HS, 0, v.reg, v.reg, imm( 1<<v.l )); in component_sat()
DGGLAssembler.cpp211 imm( 1 << (32 - GGL_DITHER_ORDER_SHIFT))); in scanline_core()
265 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask)); in scanline_core()
324 SUB(AL, S, parts.count.reg, parts.count.reg, imm(1<<16)); in scanline_core()
339 ADDR_ADD(AL, 0, parts.cbPtr.reg, parts.cbPtr.reg, imm(parts.cbPtr.size>>3)); in scanline_core()
341 SUB(AL, S, parts.count.reg, parts.count.reg, imm(1<<16)); in scanline_core()
368 SUB(AL, 0, parts.count.reg, parts.count.reg, imm(1)); in build_scanline_prolog()
378 AND(AL, 0, tx, Rx, imm(GGL_DITHER_MASK)); in build_scanline_prolog()
379 AND(AL, 0, ty, Ry, imm(GGL_DITHER_MASK)); in build_scanline_prolog()
832 case GGL_CLEAR: MOV(AL, 0, pixel.reg, imm(0)); break; in build_logic_op()
854 case GGL_SET: MVN(AL, 0, pixel.reg, imm(0)); break; in build_logic_op()
[all …]
Dmips_opcode.h52 unsigned imm: 16; member
87 unsigned imm: 16; member
Dload_store.cpp52 ADD(AL, 0, addr.reg, addr.reg, imm(3)); in store()
96 ADD(AL, 0, addr.reg, addr.reg, imm(3)); in load()
127 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask; in extract()
129 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask; in extract()
137 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask; in extract()
139 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask; in extract()
DMIPSAssembler.cpp211 uint32_t immediate, uint32_t& rot, uint32_t& imm) in buildImmediate() argument
215 imm = immediate; in buildImmediate()
227 uint32_t ArmToMipsAssembler::imm(uint32_t immediate) in imm() function in android::ArmToMipsAssembler
1446 void MIPSAssembler::ADDIU(int Rt, int Rs, int16_t imm) in ADDIU() argument
1448 *mPC++ = (addiu_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in ADDIU()
1459 void MIPSAssembler::SUBIU(int Rt, int Rs, int16_t imm) // really addiu(d, s, -j) in SUBIU() argument
1461 *mPC++ = (addiu_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | ((-imm) & MSK_16); in SUBIU()
1533 void MIPSAssembler::SLTI(int Rt, int Rs, int16_t imm) in SLTI() argument
1535 *mPC++ = (slti_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in SLTI()
1545 void MIPSAssembler::SLTIU(int Rt, int Rs, int16_t imm) in SLTIU() argument
[all …]
DARMAssemblerProxy.cpp81 int ARMAssemblerProxy::buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm) in buildImmediate() argument
83 return mTarget->buildImmediate(i, rot, imm); in buildImmediate()
88 uint32_t ARMAssemblerProxy::imm(uint32_t immediate) in imm() function in android::ARMAssemblerProxy
90 return mTarget->imm(immediate); in imm()
DARMAssembler.h67 virtual int buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm);
69 virtual uint32_t imm(uint32_t immediate);
DARMAssemblerProxy.h56 virtual int buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm);
58 virtual uint32_t imm(uint32_t immediate);
DARMAssemblerInterface.h78 virtual int buildImmediate(uint32_t i, uint32_t& rot, uint32_t& imm) = 0;
80 virtual uint32_t imm(uint32_t immediate) = 0;
/system/core/libpixelflinger/tests/arch-arm64/assembler/
Darm64_assembler_test.cpp436 op2 = a64asm->imm(test.immValue); in dataOpTest()
683 uint32_t op2 = a64asm->imm(0x31); in dataTransferLDMSTM()