Lines Matching refs:physReg
69 if (instr->operands[3 + i].physReg() != instr->operands[3].physReg().advance(i * 4))
116 encoding |= !instr->definitions.empty() ? instr->definitions[0].physReg() << 16 : 0;
117 encoding |= instr->operands.size() >= 2 ? instr->operands[1].physReg() << 8 : 0;
118 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0;
141 encoding |= !instr->definitions.empty() && !(instr->definitions[0].physReg() == scc)
142 ? instr->definitions[0].physReg() << 16
143 : !instr->operands.empty() && instr->operands[0].physReg() <= 127
144 ? instr->operands[0].physReg() << 16
152 encoding |= !instr->definitions.empty() ? instr->definitions[0].physReg() << 16 : 0;
154 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0;
161 encoding |= instr->operands.size() == 2 ? instr->operands[1].physReg() << 8 : 0;
162 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0;
187 encoding |= instr->definitions.size() ? instr->definitions[0].physReg() << 15 : 0;
188 encoding |= instr->operands.size() ? (instr->operands[0].physReg() >> 1) << 9 : 0;
191 encoding |= instr->operands[1].physReg().reg();
229 encoding |= (is_load ? instr->definitions[0].physReg() : instr->operands[2].physReg())
233 encoding |= instr->operands[0].physReg() >> 1;
247 offset = op_off1.isConstant() ? op_off1.constantValue() : op_off1.physReg();
254 soffset = op_off1.physReg();
264 soffset = op_off2.physReg();
276 encoding |= (0xFF & instr->definitions[0].physReg()) << 17;
277 encoding |= (0xFF & instr->operands[1].physReg()) << 9;
278 encoding |= instr->operands[0].physReg();
285 encoding |= (0xFF & instr->definitions[0].physReg()) << 17;
288 encoding |= instr->operands[0].physReg();
295 encoding |= (0xFF & instr->operands[1].physReg()) << 9;
296 encoding |= instr->operands[0].physReg();
317 encoding |= (0xFF & instr->definitions[0].physReg());
323 encoding |= instr->operands[0].physReg() << 9;
327 encoding |= instr->operands[2].physReg() << 18;
338 encoding |= (0xFF & instr->definitions[0].physReg()) << 18;
345 encoding |= (0xFF & instr->operands[0].physReg());
364 unsigned reg = !instr->definitions.empty() ? instr->definitions[0].physReg() : 0;
366 reg = instr->operands.size() >= 3 && !(instr->operands[2].physReg() == m0)
367 ? instr->operands[2].physReg()
370 reg = instr->operands.size() >= 2 && !(instr->operands[1].physReg() == m0)
371 ? instr->operands[1].physReg()
374 encoding |= (0xFF & instr->operands[0].physReg());
401 encoding |= instr->operands[2].physReg() << 24;
403 encoding |= (instr->operands[0].physReg() >> 2) << 16;
404 unsigned reg = instr->operands.size() > 3 ? instr->operands[3].physReg()
405 : instr->definitions[0].physReg();
407 encoding |= (0xFF & instr->operands[1].physReg());
434 encoding |= instr->operands[2].physReg() << 24;
437 encoding |= (instr->operands[0].physReg() >> 2) << 16;
438 unsigned reg = instr->operands.size() > 3 ? instr->operands[3].physReg()
439 : instr->definitions[0].physReg();
441 encoding |= (0xFF & instr->operands[1].physReg());
477 encoding = (0xFF & instr->operands[3].physReg()); /* VADDR */
479 encoding |= (0xFF & instr->definitions[0].physReg()) << 8; /* VDATA */
481 encoding |= (0xFF & instr->operands[2].physReg()) << 8; /* VDATA */
483 encoding |= (0x1F & (instr->operands[0].physReg() >> 2)) << 16; /* T# (resource) */
485 encoding |= (0x1F & (instr->operands[1].physReg() >> 2)) << 21; /* sampler */
500 nsa[i / 4] |= (0xFF & instr->operands[4 + i].physReg().reg()) << (i % 4 * 8);
539 encoding = (0xFF & instr->operands[0].physReg());
541 encoding |= (0xFF & instr->definitions[0].physReg()) << 24;
543 encoding |= (0xFF & instr->operands[2].physReg()) << 8;
545 assert(ctx.gfx_level >= GFX10 || instr->operands[1].physReg() != 0x7F);
547 encoding |= instr->operands[1].physReg() << 16;
578 encoding = 0xFF & exp.operands[0].physReg();
579 encoding |= (0xFF & exp.operands[1].physReg()) << 8;
580 encoding |= (0xFF & exp.operands[2].physReg()) << 16;
581 encoding |= (0xFF & exp.operands[3].physReg()) << 24;
627 encoding |= instr->definitions[1].physReg() << 8;
628 encoding |= (0xFF & instr->definitions[0].physReg());
634 encoding |= instr->operands[0].physReg() << 0;
635 encoding |= instr->operands[1].physReg() << 9;
639 encoding |= instr->operands[i].physReg() << (i * 9);
664 encoding |= (0xFF & instr->definitions[0].physReg());
668 encoding |= instr->operands[i].physReg() << (i * 9);
693 encoding |= (0xFF) & dpp_op.physReg();
705 uint32_t encoding = (0xFF) & dpp_op.physReg();
723 if (instr->definitions[0].physReg() != vcc) {
724 encoding |= instr->definitions[0].physReg() << 8;
729 encoding |= sdwa.dst_sel.to_sdwa_sel(instr->definitions[0].physReg().byte()) << 8;
738 encoding |= sdwa.sel[0].to_sdwa_sel(sdwa_op.physReg().byte()) << 16;
744 encoding |= sdwa.sel[1].to_sdwa_sel(instr->operands[1].physReg().byte()) << 24;
750 encoding |= 0xFF & sdwa_op.physReg();
751 encoding |= (sdwa_op.physReg() < 256) << 23;
753 encoding |= (instr->operands[1].physReg() < 256) << 31;
813 } else if ((*it)->definitions.size() && (*it)->definitions[0].physReg() == exec) {
899 Definition def_tmp_lo(branch->definitions[0].physReg(), s1);
900 Operand op_tmp_lo(branch->definitions[0].physReg(), s1);
901 Definition def_tmp_hi(branch->definitions[0].physReg().advance(4), s1);
902 Operand op_tmp_hi(branch->definitions[0].physReg().advance(4), s1);
941 bld.sop1(aco_opcode::s_setpc_b64, Operand(branch->definitions[0].physReg(), s2)).instr);