Lines Matching refs:srcs
66 struct ir3_register *src = instr->srcs[0];
102 struct ir3_instruction *cond = ssa(cmp->srcs[0]);
104 (cmp->srcs[1]->flags & IR3_REG_IMMED) &&
105 (cmp->srcs[1]->iim_val == 0) &&
116 unsigned srcflags = src->srcs[0]->flags;
150 struct ir3_instruction *srcsrc = ssa(src->srcs[0]);
243 instr->srcs[n] = reg;
306 swap(instr->srcs[0], instr->srcs[1]);
312 ir3_valid_flags(instr, 1, instr->srcs[1]->flags);
316 swap(instr->srcs[0], instr->srcs[1]);
353 struct ir3_register *src_reg = src->srcs[0];
381 struct ir3_register *src_reg = src->srcs[0];
401 * src prior to multiply) can swap their first two srcs if
467 instr->srcs[n] = src_reg;
508 instr->srcs[n] = src_reg;
530 struct ir3_register *reg = instr->srcs[0];
592 if (instr->opc == OPC_MOV && (instr->srcs[0]->flags & IR3_REG_IMMED) &&
599 uint32_t uimm = instr->srcs[0]->uim_val;
602 instr->srcs[0]->uim_val = uimm;
604 instr->srcs[0]->flags |= IR3_REG_HALF;
606 instr->srcs[0]->flags &= ~IR3_REG_HALF;
615 struct ir3_instruction *cond = ssa(instr->srcs[0]);
625 instr->srcs[0] = ir3_reg_clone(ctx->shader, cond->srcs[0]);
626 instr->srcs[1] = ir3_reg_clone(ctx->shader, cond->srcs[1]);
649 struct ir3_instruction *samp_tex = ssa(instr->srcs[0]);
653 struct ir3_register *samp = samp_tex->srcs[0];
654 struct ir3_register *tex = samp_tex->srcs[1];
665 instr->srcs[i] = instr->srcs[i + 1];