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:
0a63152
)
fix bfp compare
author
Jacob Lifshay
<programmerjake@gmail.com>
Sat, 20 May 2023 02:50:38 +0000
(19:50 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Sat, 20 May 2023 02:51:03 +0000
(19:51 -0700)
openpower/isafunctions/bfp.mdwn
patch
|
blob
|
history
diff --git
a/openpower/isafunctions/bfp.mdwn
b/openpower/isafunctions/bfp.mdwn
index 7bcec46d4a07e4cfd6f92a84b26caa6214bceb02..09f9aedac688853e657a6040ef52ba31d8eb54ad 100644
(file)
--- a/
openpower/isafunctions/bfp.mdwn
+++ b/
openpower/isafunctions/bfp.mdwn
@@
-691,7
+691,7
@@
section 7.6.2.2
if (ro=0) & (rmode=0b10) then r <- bfp_ROUND_CEIL(53, x)
if (ro=0) & (rmode=0b11) then r <- bfp_ROUND_FLOOR(53, x)
if ro=1 then r <- bfp_ROUND_ODD(53, x)
- if bfp_
ABSOLUTE(r) > bfp_NMAX_BFP64(
) then
+ if bfp_
COMPARE_GT(bfp_ABSOLUTE(r), bfp_NMAX_BFP64()
) then
if FPSCR.OE=0 then
if x.sign then
if (ro=0) & (rmode=0b00) then r <- bfp_INFINITY()