[Libre-soc-bugs] [Bug 1082] fix the pseudo-code parser's operator precedence to match PowerISA v3.1B

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri May 19 07:05:54 BST 2023


Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
           Severity|normal                      |major

--- Comment #1 from Jacob Lifshay <programmerjake at gmail.com> ---
Today I ran into a bug directly caused by this, this needs to be higher

copying from bfp_ROUND_TO_BFP64 at PowerISA v3.1B page 603(629):
the spec says:
if ro=0 & rmode=0b00 then r <- bfp_ROUND_NEAR_EVEN(53, x)
the spec says that condition is parsed as:
(ro=0) & (rmode=0b00)
however our parser incorrectly parses it as:
(ro=(0 & rmode))=0b00
translating it to:
eq(eq(ro, 0 & rmode), SelectableInt(value=0x0, bits=2))

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list