use concat in ternlogi to reduce code size
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Dec 2021 15:13:15 +0000 (15:13 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Dec 2021 15:13:15 +0000 (15:13 +0000)
openpower/isa/bitmanip.mdwn

index 650d56e92c6939589a23190c3521ea713264cd66..46cddc44869959e6422100c6b881cc7fe6110d55 100644 (file)
@@ -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