From: Dmitry Selyutin Date: Sun, 14 Jan 2024 13:44:25 +0000 (+0300) Subject: oppc/code: support concatenation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5764c3597892f87bee4850f11b93352cc871320f;p=openpower-isa.git oppc/code: support concatenation --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index 19e8b7d8..62063a1f 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -192,6 +192,7 @@ class CodeVisitor(pc_util.Visitor): pc_ast.LtU, pc_ast.GtU, pc_ast.LShift, pc_ast.RShift, pc_ast.BitAnd, pc_ast.BitOr, pc_ast.BitXor, + pc_ast.BitConcat, ) def Op(self, node): yield node @@ -215,6 +216,7 @@ class CodeVisitor(pc_util.Visitor): pc_ast.BitAnd: "oppc_and", pc_ast.BitOr: "oppc_or", pc_ast.BitXor: "oppc_xor", + pc_ast.BitConcat: "oppc_concat", }[node.__class__] self[node].emit(stmt=op)