projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c796c9
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 25 Oct 2022 15:28:11 +0000
(16:28 +0100)
committer
IkiWiki
<ikiwiki.info>
Tue, 25 Oct 2022 15:28:11 +0000
(16:28 +0100)
openpower/sv/rfc/ls003.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/rfc/ls003.mdwn
b/openpower/sv/rfc/ls003.mdwn
index 4a4015e10164983bb55cc227b9052dd98d5a4715..f397365de4a09b98a9b8d1b4d190f8fa0f7ff4e5 100644
(file)
--- a/
openpower/sv/rfc/ls003.mdwn
+++ b/
openpower/sv/rfc/ls003.mdwn
@@
-181,7
+181,7
@@
Pseudo-code:
```
if ((RA) <u (RB)) & ((RB) != [0]*64) then # Check RA<RB, for divide-by-0
dividend[0:127] <- (RA) || (RC) # Combine RA/RC as 128-bit
- divisor[0:127] <-
EXTZ(RB)
# Extend RB to 128-bit
+ divisor[0:127] <-
[0]*64 || (RB)
# Extend RB to 128-bit
result <- dividend / divisor # Division
modulo <- dividend % divisor # Modulo
RT <- result[64:127] # Store result in RT