whoops
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 28 Jan 2024 20:45:14 +0000 (20:45 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 28 Jan 2024 20:45:14 +0000 (20:45 +0000)
src/openpower/insndb/core.py

index 8a398c9f928bd576322bae585d01e24a996ff72f..de8abf7e7f768aea09ba7f77b0686d14fca38e46 100644 (file)
@@ -287,8 +287,7 @@ class PPCRecord(Dataclass):
             record["cr_in"] = "BA"
             record["cr_in2"] = "BB"
             del record["CR in"]
-
-        if record["CR in"] == "BA_BFB":
+        elif record["CR in"] == "BA_BFB":
             record["cr_in"] = "BA"
             record["cr_in2"] = "BFB"
             del record["CR in"]
@@ -401,7 +400,7 @@ class SVP64Record(Dataclass):
             record["cr_in2"] = "BFB"
             #record["cr_out"] = "BF" # only use BFA_BFB_BF when BF is a dest
             del record["CR in"]
-        if record["CR in"] == "BA_BFB": # maaamma miiiia... enough!
+        elif record["CR in"] == "BA_BFB": # maaamma miiiia... enough!
             record["cr_in"] = "BA"
             record["cr_in2"] = "BFB"
             del record["CR in"]