Lines Matching defs:bits
203 /* check that no upper bits are lost in case of packed 16bit constants */
221 bool is_constant(unsigned bits)
223 switch (bits) {
232 bool is_literal(unsigned bits)
235 switch (bits) {
244 bool is_constant_or_literal(unsigned bits)
246 if (bits == 64)
912 get_constant_op(opt_ctx& ctx, ssa_info info, uint32_t bits)
914 if (bits == 64)
916 return Operand::get_const(ctx.program->gfx_level, info.val, bits / 8u);
926 unsigned bits = get_operand_size(instr, i);
927 if (info.is_constant(bits)) {
928 instr->operands[i] = get_constant_op(ctx, info, bits);
952 Operand op = Operand::get_const(ctx.program->gfx_level, val, bits / 8u);
953 if (bits == 32 && op.isLiteral()) /* try sign extension */
955 if (bits == 32 && op.isLiteral()) { /* try shifting left */
997 } else if (bits == 16 && const_lo.constantValue() == (const_hi.constantValue() ^ (1 << 15))) {
1131 /* The undesireable upper bits are already shifted out. */
1311 unsigned bits = get_operand_size(instr, i);
1312 if ((info.is_constant(bits) || (info.is_literal(bits) && instr->isPseudo())) &&
1314 instr->operands[i] = get_constant_op(ctx, info, bits);
1345 unsigned bits = get_operand_size(instr, i);
1346 bool mod_bitsize_compat = instr->operands[i].bytes() * 8 == bits;
1385 if (info.is_constant(bits) && alu_can_accept_constant(instr->opcode, i) &&
1387 Operand op = get_constant_op(ctx, info, bits);
3126 /* swap bits using a 4-entry LUT */
4559 unsigned bits = get_operand_size(instr, i);
4568 } else if (!op.isTemp() || !ctx.info[op.tempId()].is_literal(bits)) {
4765 unsigned bits = get_operand_size(instr, i);
4766 if (op.isTemp() && ctx.info[op.tempId()].is_literal(bits) && ctx.uses[op.tempId()] == 0) {