for (level, stmt) in self[transient]:
self[node].emit(stmt=stmt, level=level)
- @pc_util.Hook(pc_ast.Overflow)
- def Overflow(self, node):
+ @pc_util.Hook(pc_ast.Overflow, pc_ast.CR3, pc_ast.CR5,
+ pc_ast.XER, pc_ast.Reserve, pc_ast.Special)
+ def Special(self, node):
yield node
- (value, bits) = ("OPPC_OVERFLOW", "(uint8_t)OPPC_OVERFLOW")
- transient = self.transient(node=node, value=value, bits=bits)
with self.pseudocode(node=node):
- for (level, stmt) in self[transient]:
- self[node].emit(stmt=stmt, level=level)
+ self[node].emit(stmt=f"&OPPC_{str(node).upper()}")
@pc_util.Hook(pc_ast.SubscriptExpr)
def SubscriptExpr(self, node):