• Home
  • Raw
  • Download

Lines Matching refs:reg

40         integer_t fragment(temp.reg, temp.h, temp.flags);  in build_fog()
42 temp.reg = regs.obtain(); in build_fog()
47 LDRB(AL, fogColor.reg, mBuilderContext.Rctx, in build_fog()
51 CONTEXT_LOAD(factor.reg, generated_vars.f); in build_fog()
55 BIC(AL, 0, factor.reg, factor.reg, reg_imm(factor.reg, ASR, 31)); in build_fog()
56 CMP(AL, factor.reg, imm( 0x10000 )); in build_fog()
57 MOV(HS, 0, factor.reg, imm( 0x10000 )); in build_fog()
138 MOV(AL, 0, temp.reg, reg_imm(temp.reg, LSR, temp.l)); in build_blending()
142 integer_t fragment(temp.reg, temp.size(), temp.flags); in build_blending()
147 fragment.reg = scratches.obtain(); in build_blending()
148 MOV(AL, 0, fragment.reg, reg_imm(temp.reg, LSR, temp.l)); in build_blending()
155 temp.reg = regs.obtain(); in build_blending()
237 if (scratches.isUsed(src_factor.reg)) in build_blending()
238 scratches.recycle(src_factor.reg); in build_blending()
298 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s))); in build_blend_factor()
314 factor.setTo(fragment.reg, 32, CORRUPTIBLE); in build_blend_factor()
317 factor.setTo(fb.reg, 32, CORRUPTIBLE); in build_blend_factor()
331 ADD(AL, 0, factor.reg, fb.reg, reg_imm(fb.reg, LSR, fb.s-1)); in build_blend_factor()
336 ADD(AL, 0, factor.reg, fragment.reg, in build_blend_factor()
337 reg_imm(fragment.reg, LSR, fragment.s-1)); in build_blend_factor()
342 ADD(AL, 0, factor.reg, src_alpha.reg, in build_blend_factor()
343 reg_imm(src_alpha.reg, LSR, src_alpha.s-1)); in build_blend_factor()
349 ADD(AL, 0, factor.reg, factor.reg, in build_blend_factor()
350 reg_imm(factor.reg, LSR, factor.s-1)); in build_blend_factor()
365 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s))); in build_blend_factor()
371 MOV(AL, 0, factor.reg, reg_imm(factor.reg, LSR, factor.s-8)); in build_blend_factor()
445 fragment.reg : scratches.obtain(), fb.size(), CORRUPTIBLE); in build_blendFOneMinusF()
447 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendFOneMinusF()
448 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendFOneMinusF()
449 else RSB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendFOneMinusF()
463 fb.reg : scratches.obtain(), fb.size(), CORRUPTIBLE); in build_blendOneMinusFF()
465 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendOneMinusFF()
466 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendOneMinusFF()
467 else SUB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendOneMinusFF()
541 int vreg = v.reg; in mul_factor()
542 int freg = f.reg; in mul_factor()
544 MOV(AL, 0, d.reg, reg_imm(vreg, LSR, vshift)); in mul_factor()
545 vreg = d.reg; in mul_factor()
548 MOV(AL, 0, d.reg, reg_imm(vreg, LSR, fshift)); in mul_factor()
549 freg = d.reg; in mul_factor()
551 if (smulw) SMULW(AL, xy, d.reg, vreg, freg); in mul_factor()
552 else SMUL(AL, xy, d.reg, vreg, freg); in mul_factor()
579 integer_t add(a.reg, a.h, a.flags); in mul_factor_add()
593 if (d.reg!=a.reg && d.reg!=v.reg && d.reg!=f.reg) { in mul_factor_add()
594 add.reg = d.reg; in mul_factor_add()
596 add.reg = scratches.obtain(); in mul_factor_add()
604 if (vs<16 && fs<16) SMLABB(AL, d.reg, v.reg, f.reg, add.reg); in mul_factor_add()
605 else MLA(AL, 0, d.reg, v.reg, f.reg, add.reg); in mul_factor_add()
607 int temp = d.reg; in mul_factor_add()
608 if (temp == add.reg) { in mul_factor_add()
610 if (v.flags & CORRUPTIBLE) temp = v.reg; in mul_factor_add()
611 else if (f.flags & CORRUPTIBLE) temp = f.reg; in mul_factor_add()
615 if (vs<16 && fs<16) SMULBB(AL, temp, v.reg, f.reg); in mul_factor_add()
616 else MUL(AL, 0, temp, v.reg, f.reg); in mul_factor_add()
619 ADD(AL, 0, d.reg, temp, reg_imm(add.reg, LSL, ms-as)); in mul_factor_add()
622 ADD(AL, 0, d.reg, temp, reg_imm(add.reg, LSR, as-ms)); in mul_factor_add()
641 ADD(AL, 0, d.reg, src.reg, dst.reg); in component_add()
643 ADD(AL, 0, d.reg, src.reg, reg_imm(dst.reg, LSL, shift)); in component_add()
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()