diff options
Diffstat (limited to 'riscv/insns/div.h')
-rw-r--r-- | riscv/insns/div.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/div.h b/riscv/insns/div.h index 261880f..3ad613a 100644 --- a/riscv/insns/div.h +++ b/riscv/insns/div.h @@ -1,8 +1,8 @@ -sreg_t lhs = sext_xprlen(RS1); -sreg_t rhs = sext_xprlen(RS2); +sreg_t lhs = sext_xlen(RS1); +sreg_t rhs = sext_xlen(RS2); if(rhs == 0) WRITE_RD(UINT64_MAX); else if(lhs == INT64_MIN && rhs == -1) WRITE_RD(lhs); else - WRITE_RD(sext_xprlen(lhs / rhs)); + WRITE_RD(sext_xlen(lhs / rhs)); |