Lines Matching defs:mask
886 * we'd get a mask of 0 when bits is 32. Special case it.
888 * mask = bits == 32 ? 0xffffffff : (1u << bits) - 1u;
890 ir_expression *mask = csel(equal(bits, c32),
901 * (value >> offset) & mask;
906 ir->operands[1] = mask;
954 ir_variable *mask =
955 new(ir) ir_variable(ir->operands[0]->type, "mask", ir_var_temporary);
976 * we'd get a mask of 0 when bits is 32. Special case it.
978 * mask = (bits == 32 ? 0xffffffff : (1u << bits) - 1u) << offset;
992 base_ir->insert_before(mask);
994 base_ir->insert_before(assign(mask, csel(equal(bits, c32),
1000 /* (base & ~mask) | ((insert << offset) & mask) */
1003 ir->operands[0] = bit_and(ir->operands[0], bit_not(mask));
1004 ir->operands[1] = bit_and(lshift(ir->operands[1], offset), mask);