From 0d984ad6b2c7a7917ad9eca4f0a31b9f7d9e359e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 7 Nov 2018 09:14:09 +0000 Subject: [PATCH] fix length=0 in fsw and fsd --- id_regs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/id_regs.py b/id_regs.py index 61fde4a..03e255d 100644 --- a/id_regs.py +++ b/id_regs.py @@ -103,10 +103,10 @@ def find_registers(fname, insn, twin_predication, immed_offset, is_branch): elif "f128(" in f: src_flen = 128 dest_flen = 128 - elif "f64(" in f: + elif "f64(" in f or insn == 'fsd': src_flen = 64 dest_flen = 64 - elif "f32(" in f: + elif "f32(" in f or insn == 'fsw': src_flen = 32 dest_flen = 32 for pattern in patterns: -- 2.30.2