diff --git a/riscv_isac/InstructionObject.py b/riscv_isac/InstructionObject.py index 9396e6a..0f140d1 100644 --- a/riscv_isac/InstructionObject.py +++ b/riscv_isac/InstructionObject.py @@ -674,16 +674,22 @@ def evaluate_reg_sem_f_ext(self, reg_val, flen, iflen, postfix, f_ext_vars, inxF if flen > iflen: - if inxFlag: + if inxFlag and iflen == 16: + if bin_val[16] == '1' : + sgnd_bin_val = bin(reg_val &((1<