Lines Matching refs:format
161 return "'{}'".format(expr[1:])
165 return "ctx[{}]".format(keys.index(expr))
257 output += "bool ordering = (_BITS(bits, {}, 3) > _BITS(bits, {}, 3));\n".format(desc["srcs"][0][0], desc["srcs"][1][0])
268 idx_parts.append("(_BITS(bits, {}, {}) << {})".format(pos, width, shift))
280 output += " const char *{} = ordering ? {}_1[{}] : {}_0[{}];\n".format(key, key, built_idx, key, built_idx)
284 output += " const char *{} = {}_table[{}];\n".format(key, key, built_idx)
292 return ' fputs({}, fp);\n'.format(mod[0][0])
311 body += ' fputs("{}", fp);\n'.format(mnemonic)
323 body += ' bi_disasm_dest_{}(fp, next_regs, last);\n'.format('fma' if is_fma else 'add')
329 body += ' dump_src(fp, _BITS(bits, {}, 3), *srcs, branch_offset, consts, {});\n'.format(pos, "true" if is_fma else "false")
333 body += ' if (!({} & (1 << _BITS(bits, {}, 3)))) fputs("(INVALID)", fp);\n'.format(hex(mask), pos, 3)
342 body += ' fprintf(fp, ", {}:%u", _BITS(bits, {}, {}));\n'.format(imm, pos, width)