Lines Matching refs:regs
56 static unsigned get_reg0(struct bifrost_regs regs)
58 if (regs.ctrl == 0)
59 return regs.reg0 | ((regs.reg1 & 0x1) << 5);
61 return regs.reg0 <= regs.reg1 ? regs.reg0 : 63 - regs.reg0;
64 static unsigned get_reg1(struct bifrost_regs regs)
66 return regs.reg0 <= regs.reg1 ? regs.reg1 : 63 - regs.reg1;
136 static struct bifrost_reg_ctrl DecodeRegCtrl(FILE *fp, struct bifrost_regs regs, bool first)
140 if (regs.ctrl == 0) {
141 ctrl = regs.reg1 >> 2;
142 decoded.read_reg0 = !(regs.reg1 & 0x2);
145 ctrl = regs.ctrl;
152 else if (regs.reg2 == regs.reg3)
652 struct bifrost_regs regs, next_regs;
661 memcpy((char *) ®s, (char *) &instrs[i].reg_bits, sizeof(regs));
664 fprintf(fp, " # regs: %016" PRIx64 "\n", instrs[i].reg_bits);
665 dump_regs(fp, regs, i == 0);
668 bi_disasm_fma(fp, instrs[i].fma_bits, ®s, &next_regs,
672 bi_disasm_add(fp, instrs[i].add_bits, ®s, &next_regs,