From: Luke Kenneth Casson Leighton Date: Sat, 29 Sep 2018 11:06:10 +0000 (+0100) Subject: also arrange for id_regs.py to identify compressed instruction usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82b5ca824534661602d43764152516b9a5f8526b;p=riscv-isa-sim.git also arrange for id_regs.py to identify compressed instruction usage --- diff --git a/id_regs.py b/id_regs.py index b40e5ce..6b8a678 100644 --- a/id_regs.py +++ b/id_regs.py @@ -39,13 +39,22 @@ def list_insns(): res.append((os.path.join(insns_dir, fname), insn)) return res -intpatterns = ['WRITE_RD', 'RS1', 'RS2', 'RS3'] +cintpatterns = [ 'WRITE_RVC_RS1S', 'WRITE_RVC_RS2S', + 'RVC_RS1', 'RVC_RS2', 'RVC_RS1S', 'RVC_RS2S', ] +cfloatpatterns = [ 'WRITE_RVC_FRS2S', 'RVC_FRS2 ', 'RVC_FRS2S '] +intpatterns = ['WRITE_RD' , 'RS1', 'RS2', 'RS3'] floatpatterns = ['WRITE_FRD', 'FRS1', 'FRS2', 'FRS3'] patterns = intpatterns + floatpatterns +patterns += cintpatterns +patterns += cfloatpatterns + +allfloats = floatpatterns + cfloatpatterns +floatmask = (1<