Lines Matching refs:regs

47 		struct ir3_register *dst = instr->regs[0];
48 struct ir3_register *src = instr->regs[1];
103 if ((instr->regs[0]->flags & IR3_REG_RELATIV) &&
138 struct ir3_register *reg = instr->regs[m];
232 unsigned srcflags = src->regs[1]->flags;
266 struct ir3_instruction *srcsrc = ssa(src->regs[1]);
369 struct ir3_register *src_reg = src->regs[1];
393 struct ir3_register *src_reg = src->regs[1];
402 instr->regs[n + 1] = lower_immed(ctx, src_reg, new_flags);
414 !(instr->regs[0 + 1]->flags & (IR3_REG_CONST | IR3_REG_RELATIV)) &&
418 tmp = instr->regs[0 + 1];
419 instr->regs[0 + 1] = instr->regs[1 + 1];
420 instr->regs[1 + 1] = tmp;
455 instr->regs[n+1] = src_reg;
467 instr->regs[n+1] = src_reg;
505 instr->regs[n+1] = src_reg;
508 instr->regs[n+1] = lower_immed(ctx, src_reg, new_flags);
525 struct ir3_register *reg = instr->regs[1];
572 if (instr->regs[0]->flags & IR3_REG_ARRAY) {
573 struct ir3_instruction *src = ssa(instr->regs[0]);
593 (instr->regs[0]->num == regid(REG_P0, 0)) &&
594 ssa(instr->regs[1]) &&
595 (instr->regs[2]->flags & IR3_REG_IMMED) &&
596 (instr->regs[2]->iim_val == 0)) {
597 struct ir3_instruction *cond = ssa(instr->regs[1]);
606 instr->regs[1] = cond->regs[1];
607 instr->regs[2] = cond->regs[2];
619 * if they are immediate. This saves some instructions and regs
627 struct ir3_instruction *samp_tex = ssa(instr->regs[1]);
631 struct ir3_instruction *samp = ssa(samp_tex->regs[1]);
632 struct ir3_instruction *tex = ssa(samp_tex->regs[2]);
635 (samp->regs[1]->flags & IR3_REG_IMMED) &&
637 (tex->regs[1]->flags & IR3_REG_IMMED)) {
639 instr->cat5.samp = samp->regs[1]->iim_val;
640 instr->cat5.tex = tex->regs[1]->iim_val;
641 instr->regs[1]->instr = NULL;