From: Luke Kenneth Casson Leighton Date: Sat, 25 Jul 2020 21:25:41 +0000 (+0100) Subject: argh actually const is too long because of hex digits X-Git-Tag: convert-csv-opcode-to-binary~2325 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fb3ac1044b8b0fc07e57a950cb7213e10ae2d05;p=libreriscv.git argh actually const is too long because of hex digits --- diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index a3d054aac..6b4259152 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -350,8 +350,8 @@ Pseudo-code: prod[0:63] <- MULS((RA)[32:63], (RB)[32:63]) RT <- prod - overflow <- ((prod[0:33] != 0x0_0000_0000) & - (prod[0:33] != 0x1_ffff_ffff)) + overflow <- ((prod[0:32] != [0]*33) & + (prod[0:32] != [1]*33)) Special Registers Altered: @@ -564,8 +564,8 @@ Pseudo-code: prod[0:127] <- MULS((RA), (RB)) RT <- prod[64:127] - overflow <- ((prod[0:65] != 0x0_0000_0000_0000_0000) & - (prod[0:65] != 0x1_ffff_ffff_ffff_ffff)) + overflow <- ((prod[0:64] != [0]*65) & + (prod[0:64] != [1]*65)) Special Registers Altered: