From: Michael Nolan Date: Fri, 15 May 2020 14:17:46 +0000 (-0400) Subject: Correct pseudocode for prtyw and prtyd X-Git-Tag: convert-csv-opcode-to-binary~2659 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b220c4bcf0da2a6a2ec8eaff6727966d25dd956;p=libreriscv.git Correct pseudocode for prtyw and prtyd --- diff --git a/openpower/isa/fixedlogical.mdwn b/openpower/isa/fixedlogical.mdwn index 98f08500b..07c1a105c 100644 --- a/openpower/isa/fixedlogical.mdwn +++ b/openpower/isa/fixedlogical.mdwn @@ -298,7 +298,7 @@ X-Form s <- 0 do i = 0 to 7 - s <- s ^ (RS)[i%8+7] + s <- s ^ (RS)[i*8+7] RA <- [0] * 63 || s Special Registers Altered: @@ -314,9 +314,9 @@ X-Form s <- 0 t <- 0 do i = 0 to 3 - s <- s ^ (RS)[i%8+7] + s <- s ^ (RS)[i*8+7] do i = 4 to 7 - t <- t ^ (RS)[i%8+7] + t <- t ^ (RS)[i*8+7] RA[0:31] <- [0]*31 || s RA[32:63] <- [0]*31 || t