projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b59c209
)
fixedshift: switch sradX to XLEN
author
Dmitry Selyutin
<dmitry.selyutin@3mdeb.com>
Tue, 31 Aug 2021 20:28:26 +0000
(20:28 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 1 Sep 2021 19:26:59 +0000
(20:26 +0100)
openpower/isa/fixedshift.mdwn
patch
|
blob
|
history
diff --git
a/openpower/isa/fixedshift.mdwn
b/openpower/isa/fixedshift.mdwn
index 96d781b1192504ba180af13efed6e388edb971f3..91fabd5cce8afb8712a31015cdd1236c73dc7b43 100644
(file)
--- a/
openpower/isa/fixedshift.mdwn
+++ b/
openpower/isa/fixedshift.mdwn
@@
-341,13
+341,13
@@
X-Form
Pseudo-code:
- n <- (RB)[
58:63
]
- r <- ROTL64((RS),
64
-n)
- if (RB)[
5
7] = 0 then
- m <- MASK(n,
63
)
- else m <- [0]*
64
+ n <- (RB)[
XLEN-5:XLEN-1
]
+ r <- ROTL64((RS),
XLEN
-n)
+ if (RB)[
XLEN-
7] = 0 then
+ m <- MASK(n,
(XLEN-1)
)
+ else m <- [0]*
XLEN
s <- (RS)[0]
- RA <- r&m | ([s]*
64
)& ¬m
+ RA <- r&m | ([s]*
XLEN
)& ¬m
carry <- s & ((r&¬m) != 0)
CA <- carry
CA32 <- carry