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:
d45104a
)
bitmanip.mdwn: avoid overflow for m variable
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 1 Nov 2022 19:16:52 +0000
(22:16 +0300)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:16 +0000
(19:51 +0100)
openpower/isa/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/isa/bitmanip.mdwn
b/openpower/isa/bitmanip.mdwn
index 5d4044886eb397c046b6cc9027f909d245e196c2..9c12c69e24a3fb0233946b4424c7f0a79685f498 100644
(file)
--- a/
openpower/isa/bitmanip.mdwn
+++ b/
openpower/isa/bitmanip.mdwn
@@
-111,7
+111,7
@@
Z23-Form
Pseudo-code:
n <- (RB)
- m <-
sm + 1
+ m <-
((0b0 || sm) + 1)
RT <- (n[m:XLEN-1] || [0]*m) + (RA)
Special Registers Altered:
@@
-128,7
+128,7
@@
Z23-Form
Pseudo-code:
n <- ([0]*(XLEN/2)) || (RB)[XLEN/2:XLEN-1]
- m <-
sm + 1
+ m <-
((0b0 || sm) + 1)
RT <- (n[m:XLEN-1] || [0]*m) + (RA)
Special Registers Altered: