Lines Matching defs:new_flags

161             struct ir3_register *reg, unsigned new_flags)
163 if (!(new_flags & IR3_REG_IMMED))
166 new_flags &= ~IR3_REG_IMMED;
167 new_flags |= IR3_REG_CONST;
169 if (!ir3_valid_flags(instr, n, new_flags))
179 if (f_opcode && (new_flags & IR3_REG_HALF))
185 if (new_flags & IR3_REG_SABS) {
187 new_flags &= ~IR3_REG_SABS;
190 if (new_flags & IR3_REG_FABS) {
192 new_flags &= ~IR3_REG_FABS;
195 if (new_flags & IR3_REG_SNEG) {
197 new_flags &= ~IR3_REG_SNEG;
200 if (new_flags & IR3_REG_FNEG) {
202 new_flags &= ~IR3_REG_FNEG;
240 reg->flags = new_flags;
274 try_swap_mad_two_srcs(struct ir3_instruction *instr, unsigned new_flags)
290 if (new_flags & IR3_REG_IMMED) {
291 new_flags &= ~IR3_REG_IMMED;
292 new_flags |= IR3_REG_CONST;
298 if (!(new_flags & IR3_REG_CONST))
310 ir3_valid_flags(instr, 0, new_flags) &&
354 unsigned new_flags = reg->flags;
359 combine_flags(&new_flags, src);
361 if (ir3_valid_flags(instr, n, new_flags)) {
362 if (new_flags & IR3_REG_ARRAY) {
366 reg->flags = new_flags;
382 unsigned new_flags = reg->flags;
390 combine_flags(&new_flags, src);
392 if (!ir3_valid_flags(instr, n, new_flags)) {
394 if (lower_immed(ctx, instr, n, src_reg, new_flags))
404 if ((n == 1) && try_swap_mad_two_srcs(instr, new_flags)) {
466 src_reg->flags = new_flags;
489 return lower_immed(ctx, instr, n, src_reg, new_flags);
493 if (new_flags & IR3_REG_SABS)
496 if (new_flags & IR3_REG_SNEG)
499 if (new_flags & IR3_REG_BNOT)
502 if (ir3_valid_flags(instr, n, new_flags) &&
504 new_flags &= ~(IR3_REG_SABS | IR3_REG_SNEG | IR3_REG_BNOT);
506 src_reg->flags = new_flags;
513 return lower_immed(ctx, instr, n, src_reg, new_flags);