(no commit message)
authorlkcl <lkcl@web>
Thu, 27 Apr 2023 18:55:31 +0000 (19:55 +0100)
committerIkiWiki <ikiwiki.info>
Thu, 27 Apr 2023 18:55:31 +0000 (19:55 +0100)
openpower/sv/twin_butterfly.mdwn

index 7aa8f3200dca54e2c268200542ee11cc2adc7e4a..a8983dbb529ac089dc52c13374e218b328736003 100644 (file)
@@ -40,15 +40,16 @@ BF-Form
 
 Pseudo-code:
 
-    RT2 <- RT + 1
+```
     sum <- (RA) + (RB)
     diff <- (RA) - (RB)
-    prod1 <- MUL(RC, sum)
-    prod2 <- MUL(RC, diff)
-    res1 <- ROTL64(prod1, SH)
+    prod1 <- MUL(RC, sum)   # TODO: pick hi-half
+    prod2 <- MUL(RC, diff)  # TODO: pick hi-half
+    res1 <- ROTL64(prod1, SH) # TODO shift the other way (63-SH?)
     res2 <- ROTL64(prod2, SH)
-    RT <- (RT) + res1
-    RT2 <- (RT2) + res2
+    RT <- res1
+    RS <- res2
+```
 
 Special Registers Altered: