Lines Matching refs:cap
475 for cap in caps:
476 if cap not in cap_to_inst:
477 cap_to_inst[cap] = []
478 cap_to_inst[cap].append(inst['opname'])
512 for cap in rem_cap_to_instr:
513 if cap not in ex_cap_to_instr:
514 rem_cap_to_cov[cap] = 0.0
516 rem_cap_to_cov[cap] = \
517 (len(ex_cap_to_instr[cap]) / (len(ex_cap_to_instr[cap]) \
518 + len(rem_cap_to_instr[cap])))
523 for cap in rem_cap_to_instr:
524 report[cap] = {}
525 report[cap]['Supported Instructions'] = \
526 ex_cap_to_instr[cap] if cap in ex_cap_to_instr else []
527 report[cap]['Unsupported Instructions'] = rem_cap_to_instr[cap]
528 report[cap]['Coverage'] = '{}%'.format(int(rem_cap_to_cov[cap] * 100))