From: Jacob Lifshay Date: Fri, 9 Oct 2020 00:30:39 +0000 (-0700) Subject: change to undef() X-Git-Tag: convert-csv-opcode-to-binary~2038 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b283b6c0439c6dbf2cf6e3b7bbe5381f35da9776;p=libreriscv.git change to undef() --- diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index 121a743b4..9d7bcf78d 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -389,11 +389,11 @@ Pseudo-code: if (((dividend = 0x8000_0000) & (divisor = 0xffff_ffff)) | (divisor = 0x0000_0000)) then - RT[0:63] <- undefined[0:63] + RT[0:63] <- undef([0]*64) overflow <- 1 else RT[32:63] <- DIVS(dividend, divisor) - RT[0:31] <- undefined[0:31] + RT[0:31] <- undef([0]*32) overflow <- 0 Special Registers Altered: @@ -416,10 +416,10 @@ Pseudo-code: divisor[0:31] <- (RB)[32:63] if divisor != 0 then RT[32:63] <- dividend / divisor - RT[0:31] <- undefined[0:31] + RT[0:31] <- undef([0]*32) overflow <- 0 else - RT[0:63] <- undefined[0:63] + RT[0:63] <- undef([0]*64) overflow <- 1 Special Registers Altered: @@ -449,12 +449,12 @@ Pseudo-code: result32[0:63] <- EXTS64(result[32:63]) if (result32 = result) then RT[32:63] <- result[32:63] - RT[0:31] <- undefined[0:31] + RT[0:31] <- undef([0]*32) overflow <- 0 else overflow <- 1 if overflow = 1 then - RT[0:63] <- undefined[0:63] + RT[0:63] <- undef([0]*64) Special Registers Altered: @@ -480,12 +480,12 @@ Pseudo-code: result <- dividend / divisor if RA[32:63]