From: Luke Kenneth Casson Leighton Date: Sat, 11 Dec 2021 15:13:15 +0000 (+0000) Subject: use concat in ternlogi to reduce code size X-Git-Tag: sv_maxu_works-initial~638 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8abcd7b74c5416c8a5348efc467854ad3080f12f;p=openpower-isa.git use concat in ternlogi to reduce code size --- diff --git a/openpower/isa/bitmanip.mdwn b/openpower/isa/bitmanip.mdwn index 650d56e9..46cddc44 100644 --- a/openpower/isa/bitmanip.mdwn +++ b/openpower/isa/bitmanip.mdwn @@ -10,11 +10,8 @@ TLI-Form Pseudo-code: result <- [0] * XLEN - idx <- [0] * 3 do i = 0 to XLEN - 1 - idx[0] <- (RT)[i] - idx[1] <- (RA)[i] - idx[2] <- (RB)[i] + idx <- (RT)[i] || (RA)[i] || (RB)[i] result[i] <- (TLI & ROTL64(1, idx)) != 0 RT <- result