projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a863e8
)
fishmv: change to use actual pseudocode in openpower-isa.git
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 28 Jul 2022 09:49:17 +0000
(
02:49
-0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 28 Jul 2022 09:49:17 +0000
(
02:49
-0700)
openpower/sv/int_fp_mv.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/int_fp_mv.mdwn
b/openpower/sv/int_fp_mv.mdwn
index e5ea9c035d2cf6109a3869ed6d2fff7b7699f2a8..c3e31c8f6ea2109d88f92935016eec4e6c70b5ab 100644
(file)
--- a/
openpower/sv/int_fp_mv.mdwn
+++ b/
openpower/sv/int_fp_mv.mdwn
@@
-195,9
+195,9
@@
as can be seen in the pseudocode below.
Pseudocode:
- fp32
= DOUBLE2SINGLE(FRS)
# convert to FP32
- n = fp32[0:15] || d0 || d1 || d2 # replace mantissa LSBs
- FRS
= DOUBLE(n)
# convert back to FP64
+ fp32
<- SINGLE((FRS))
# convert to FP32
+ fp32[16:31] <- d0 || d1 || d2 # replace LSB half
+ FRS
<- DOUBLE(fp32)
# convert back to FP64
**This instruction performs a Read-Modify-Write.** *FRS is read, the additional
16 bit immediate inserted, and the result also written to FRS*