obscure fmv bug where fp reg size was not defined
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 11:25:21 +0000 (11:25 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 11:25:21 +0000 (11:25 +0000)
id_regs.py

index 7e9dda08f62fea409a395b99ce2c42b40bddf791..86d4db9e56c5165da6a51158fe6adbab61dc481c 100644 (file)
@@ -87,6 +87,10 @@ def find_registers(fname, insn, twin_predication, immed_offset, is_branch):
             flen = 64
         elif "f32(" in f:
             flen = 32
+        elif insn == 'fmv_x_w':
+            flen = 32
+        elif insn == 'fmv_x_d':
+            flen = 64
         for pattern in patterns:
             x = f.find(pattern)
             if x == -1: