• Home
  • Raw
  • Download

Lines Matching refs:operands

50       unsigned offset = instr->operands[0].constantValue();  in emit_instruction()
106 encoding |= instr->operands.size() >= 2 ? instr->operands[1].physReg() << 8 : 0; in emit_instruction()
107 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0; in emit_instruction()
133 !instr->operands.empty() && instr->operands[0].physReg() <= 127 ? in emit_instruction()
134 instr->operands[0].physReg() << 16 : 0; in emit_instruction()
147 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0; in emit_instruction()
154 encoding |= instr->operands.size() == 2 ? instr->operands[1].physReg() << 8 : 0; in emit_instruction()
155 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0; in emit_instruction()
173 bool soe = instr->operands.size() >= (!instr->definitions.empty() ? 3 : 4); in emit_instruction()
181 encoding |= instr->operands.size() ? (instr->operands[0].physReg() >> 1) << 9 : 0; in emit_instruction()
182 if (instr->operands.size() >= 2) { in emit_instruction()
183 if (!instr->operands[1].isConstant() || instr->operands[1].constantValue() >= 1024) { in emit_instruction()
184 encoding |= instr->operands[1].physReg().reg(); in emit_instruction()
186 encoding |= instr->operands[1].constantValue() >> 2; in emit_instruction()
192 …if (instr->operands.size() >= 2 && instr->operands[1].isConstant() && instr->operands[1].constantV… in emit_instruction()
193 out.push_back(instr->operands[1].constantValue() >> 2); in emit_instruction()
211 if (instr->operands.size() >= 2) in emit_instruction()
212 encoding |= instr->operands[1].isConstant() ? 1 << 17 : 0; /* IMM - immediate enable */ in emit_instruction()
218 if (is_load || instr->operands.size() >= 3) { /* SDATA */ in emit_instruction()
219 … encoding |= (is_load ? instr->definitions[0].physReg() : instr->operands[2].physReg()) << 6; in emit_instruction()
221 if (instr->operands.size() >= 1) { /* SBASE */ in emit_instruction()
222 encoding |= instr->operands[0].physReg() >> 1; in emit_instruction()
232 if (instr->operands.size() >= 2) { in emit_instruction()
233 const Operand &op_off1 = instr->operands[1]; in emit_instruction()
247 const Operand &op_off2 = instr->operands.back(); in emit_instruction()
263 encoding |= (0xFF & instr->operands[1].physReg()) << 9; in emit_instruction()
264 encoding |= instr->operands[0].physReg(); in emit_instruction()
273 if (!instr->operands.empty()) in emit_instruction()
274 encoding |= instr->operands[0].physReg(); in emit_instruction()
281 encoding |= (0xFF & instr->operands[1].physReg()) << 9; in emit_instruction()
282 encoding |= instr->operands[0].physReg(); in emit_instruction()
309 encoding |= instr->operands[0].physReg() << 9; in emit_instruction()
313 encoding |= instr->operands[2].physReg() << 18; in emit_instruction()
329 encoding |= (0x3 & instr->operands[0].constantValue()); in emit_instruction()
331 encoding |= (0xFF & instr->operands[0].physReg()); in emit_instruction()
352 …reg = instr->operands.size() >= 3 && !(instr->operands[2].physReg() == m0) ? instr->operands[2].p… in emit_instruction()
354 …reg = instr->operands.size() >= 2 && !(instr->operands[1].physReg() == m0) ? instr->operands[1].ph… in emit_instruction()
356 encoding |= (0xFF & instr->operands[0].physReg()); in emit_instruction()
383 encoding |= instr->operands[2].physReg() << 24; in emit_instruction()
385 encoding |= (instr->operands[0].physReg() >> 2) << 16; in emit_instruction()
386 …unsigned reg = instr->operands.size() > 3 ? instr->operands[3].physReg() : instr->definitions[0].p… in emit_instruction()
388 encoding |= (0xFF & instr->operands[1].physReg()); in emit_instruction()
415 encoding |= instr->operands[2].physReg() << 24; in emit_instruction()
418 encoding |= (instr->operands[0].physReg() >> 2) << 16; in emit_instruction()
419 …unsigned reg = instr->operands.size() > 3 ? instr->operands[3].physReg() : instr->definitions[0].p… in emit_instruction()
421 encoding |= (0xFF & instr->operands[1].physReg()); in emit_instruction()
451 encoding = (0xFF & instr->operands[2].physReg()); /* VADDR */ in emit_instruction()
454 } else if (instr->operands[1].regClass().type() == RegType::vgpr) { in emit_instruction()
455 encoding |= (0xFF & instr->operands[1].physReg()) << 8; /* VDATA */ in emit_instruction()
457 encoding |= (0x1F & (instr->operands[0].physReg() >> 2)) << 16; /* T# (resource) */ in emit_instruction()
458 if (instr->operands[1].regClass().type() == RegType::sgpr) in emit_instruction()
459 encoding |= (0x1F & (instr->operands[1].physReg() >> 2)) << 21; /* sampler */ in emit_instruction()
502 encoding = (0xFF & instr->operands[0].physReg()); in emit_instruction()
505 if (instr->operands.size() >= 3) in emit_instruction()
506 encoding |= (0xFF & instr->operands[2].physReg()) << 8; in emit_instruction()
507 if (!instr->operands[1].isUndefined()) { in emit_instruction()
508 assert(ctx.chip_class >= GFX10 || instr->operands[1].physReg() != 0x7F); in emit_instruction()
510 encoding |= instr->operands[1].physReg() << 16; in emit_instruction()
536 encoding = 0xFF & exp->operands[0].physReg(); in emit_instruction()
537 encoding |= (0xFF & exp->operands[1].physReg()) << 8; in emit_instruction()
538 encoding |= (0xFF & exp->operands[2].physReg()) << 16; in emit_instruction()
539 encoding |= (0xFF & exp->operands[3].physReg()) << 24; in emit_instruction()
590 encoding = 0x3 & instr->operands[0].constantValue(); in emit_instruction()
592 for (unsigned i = 0; i < instr->operands.size(); i++) in emit_instruction()
593 encoding |= instr->operands[i].physReg() << (i * 9); in emit_instruction()
621 for (unsigned i = 0; i < instr->operands.size(); i++) in emit_instruction()
622 encoding |= instr->operands[i].physReg() << (i * 9); in emit_instruction()
631 Operand dpp_op = instr->operands[0]; in emit_instruction()
632 instr->operands[0] = Operand(PhysReg{250}, v1); in emit_instruction()
651 Operand sdwa_op = instr->operands[0]; in emit_instruction()
652 instr->operands[0] = Operand(PhysReg{249}, v1); in emit_instruction()
680 if (instr->operands.size() >= 2) { in emit_instruction()
681 encoding |= get_sdwa_sel(sdwa->sel[1], instr->operands[1].physReg()) << 24; in emit_instruction()
689 if (instr->operands.size() >= 2) in emit_instruction()
690 encoding |= (instr->operands[1].physReg() < 256) << 31; in emit_instruction()
699 for (const Operand& op : instr->operands) { in emit_instruction()
857 instr->operands[1].setFixed(PhysReg{255}); /* this operand has to be a literal */ in emit_long_jump()