aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/mulhsu.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/mulhsu.h')
-rw-r--r--riscv/insns/mulhsu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/mulhsu.h b/riscv/insns/mulhsu.h
index c832657..d62256e 100644
--- a/riscv/insns/mulhsu.h
+++ b/riscv/insns/mulhsu.h
@@ -2,7 +2,7 @@ if(xpr64)
{
int64_t a = RS1;
uint64_t b = RS2;
- RD = (int128_t(a) * uint128_t(b)) >> 64;
+ WRITE_RD((int128_t(a) * uint128_t(b)) >> 64);
}
else
- RD = sext32((sext32(RS1) * reg_t((uint32_t)RS2)) >> 32);
+ WRITE_RD(sext32((sext32(RS1) * reg_t((uint32_t)RS2)) >> 32));