From 8abcd7b74c5416c8a5348efc467854ad3080f12f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 11 Dec 2021 15:13:15 +0000 Subject: [PATCH] use concat in ternlogi to reduce code size --- openpower/isa/bitmanip.mdwn | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.30.2