(no commit message)
authorlkcl <lkcl@web>
Mon, 9 Aug 2021 10:07:26 +0000 (11:07 +0100)
committerIkiWiki <ikiwiki.info>
Mon, 9 Aug 2021 10:07:26 +0000 (11:07 +0100)
openpower/sv/branches.mdwn

index e7315fa2d1c9a79497d04d54c4ddae000a3ae528..447c33a4147c0325353aacbcce81c674a1adf413 100644 (file)
@@ -269,6 +269,20 @@ if svstep_mode then
     SVSTATE.srcstep = new_srcstep
 ```
 
+v3.0B branch pseudocode:
+
+```
+if (mode_is_64bit) then M <- 0
+else M <- 32
+if ¬BO[2] then CTR <- CTR - 1
+ctr_ok <- BO[2] | ((CTR[M:63] != 0) ^ BO[3])
+cond_ok <- BO[0] | ¬(CR[BI+32] ^ BO[1])
+if ctr_ok & cond_ok then
+  if AA then NIA <-iea EXTS(BD || 0b00)
+  else       NIA <-iea CIA + EXTS(BD || 0b00)
+if LK then LR  <-iea  CIA + 4
+```
+
 # Example Shader code
 
 ```