From: Dmitry Selyutin Date: Tue, 16 Jan 2024 19:09:45 +0000 (+0300) Subject: oppc/code: supply transient to unary exprs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cc4eb1dbb06c64e8c492961baa8987d082ec5d6;p=openpower-isa.git oppc/code: supply transient to unary exprs --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index ff8d6006..49b045e6 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -283,7 +283,9 @@ class CodeVisitor(pc_util.Visitor): yield node if isinstance(node.value, pc_ast.IfExpr): self.fixup_ternary(node=node.value) + transient = self.transient() call = self.call(name=str(self[node.op]), code=[ + self[transient], self[node.value], ]) with self.pseudocode(node=node):