remove ROTL64(1, idx), just use TLI[7-idx] it is shorter and readable
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Dec 2021 15:19:48 +0000 (15:19 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Dec 2021 15:19:48 +0000 (15:19 +0000)
openpower/isa/bitmanip.mdwn

index 46cddc44869959e6422100c6b881cc7fe6110d55..f428bd1b762d978eb552cb78932d0e44514e1a8b 100644 (file)
@@ -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
 
 Special Registers Altered: