From 0385b5128296a170cf7c5b1f507b2412b1a6a0f4 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 23 Aug 2021 19:51:28 +0000 Subject: [PATCH] fixedarith: switch mulldX to XLEN --- openpower/isa/fixedarith.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index cf5ba539..c4adc0b3 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -567,10 +567,10 @@ XO-Form Pseudo-code: - prod[0:127] <- MULS((RA), (RB)) - RT <- prod[64:127] - overflow <- ((prod[0:64] != [0]*65) & - (prod[0:64] != [1]*65)) + prod[0:(XLEN*2)-1] <- MULS((RA), (RB)) + RT <- prod[XLEN:(XLEN*2)-1] + overflow <- ((prod[0:XLEN] != [0]*(XLEN+1)) & + (prod[0:XLEN] != [1]*(XLEN+1))) Special Registers Altered: -- 2.30.2