syntax error in branch, CR[BI+32]
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Apr 2020 18:24:42 +0000 (19:24 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Apr 2020 18:24:52 +0000 (19:24 +0100)
openpower/isa/branch.mdwn

index c3ad338488d5dfe06b6e596bafa0d6ba7c84a7aa..095b2dc204a8de1649106eab65e409534a73ae10 100644 (file)
@@ -28,7 +28,7 @@ B-Form
     else M <- 32
     if ¬BO[2] then CTR <- CTR - 1
     ctr_ok <- BO[2] | ((CTR[M:63] != 0) ^ BO[3])
-    cond_ok <- BO[0] | ¬(CRBI+32 ^ BO[1])
+    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)