All fused multiply-add ok

master
kaqu 2 years ago
parent f32aa07698
commit df65276f56
  1. 9
      debugger/dbgeval.py

@ -47,6 +47,7 @@ def disassemble(opcode, pc):
f3 = (opcode >> 12) & 0x7 # [12:14]
rs1 = (opcode >> 15) & 0x1F # [15:19]
rs2 = (opcode >> 20) & 0x1F # [20:14]
rs3 = opcode >> 27 # [27:31]
f7 = (opcode >> 25) # [25:31]
imm_i = (opcode >> 20); # [20:31]
@ -225,6 +226,14 @@ def disassemble(opcode, pc):
msg = "flw {0},{1}({2})".format(f_description[rd], hex(imm_i), x_description[rs1])
elif op == 0x27: # F-Extension
msg = "fsw {0},{1}({2})".format(f_description[rs2], hex(imm_s), x_description[rs1])
elif op == 0x43: # F-Extension
msg = "fmadd.s {0},{1},{2},{3}".format(f_description[rd], f_description[rs1], f_description[rs2], f_description[rs3])
elif op == 0x47: # F-Extension
msg = "fmsub.s {0},{1},{2},{3}".format(f_description[rd], f_description[rs1], f_description[rs2], f_description[rs3])
elif op == 0x4B: # F-Extension
msg = "fnmsub.s {0},{1},{2},{3}".format(f_description[rd], f_description[rs1], f_description[rs2], f_description[rs3])
elif op == 0x4F: # F-Extension
msg = "fnmadd.s {0},{1},{2},{3}".format(f_description[rd], f_description[rs1], f_description[rs2], f_description[rs3])
elif op == 0x53: # R-Type (F-Extension)
if f7 == 0x00: # fadd
msg = "fadd.s {0},{1},{2}".format(f_description[rd], f_description[rs1], f_description[rs2])

Loading…
Cancel
Save