[Libre-soc-bugs] [Bug 745] OP_TERNLOG instruction
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sat Dec 11 15:19:16 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=745
--- Comment #40 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
ahh, and *this* works.
@@ -12,7 +12,7 @@ Pseudo-code:
result <- [0] * XLEN
do i = 0 to XLEN - 1
idx <- (RT)[i] || (RA)[i] || (RB)[i]
- result[i] <- (TLI & ROTL64(1, idx)) != 0
+ result[i] <- TLI[7-idx]
RT <- result
nuts. note the 7-idx. IBM will have a fit about that,
it's LSB0-to-MSB0 conversion and i'm pretty sure they'll
want (insist on) MSB0 being in the spec.
deep breath: the spec needs to read:
result[i] <- TLI[idx]
and... sigh... all the unit tests, HDL, everything, changed to
match that.
i know. it's annoying, but we don't want to irritate the
IBM members of the ISA WG by not following the conventions
of 30 years.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list