attempting to get rv32 mv working
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 7 Nov 2018 09:20:42 +0000 (09:20 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 7 Nov 2018 09:20:42 +0000 (09:20 +0000)
id_regs.py

index 03e255dc9c570bef9ae3f471a88fd2d4e6a60243..a1fdf6773d826244a3ab9bf9d7f9b3ef66fd7fcf 100644 (file)
@@ -95,12 +95,12 @@ def find_registers(fname, insn, twin_predication, immed_offset, is_branch):
                 src_flen = 128
                 dest_flen = 128
             if split[1].startswith('w'):
-                src_flen = 32
+                dest_flen = 32
             elif split[1].startswith('d'):
-                src_flen = 64
+                dest_flen = 64
             elif split[1].startswith('q'):
-                src_flen = 128
-        elif "f128(" in f:
+                dest_flen = 128
+        if "f128(" in f:
             src_flen = 128
             dest_flen = 128
         elif "f64(" in f or insn == 'fsd':