oppc/code: support concatenation
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 14 Jan 2024 13:44:25 +0000 (16:44 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index 19e8b7d87feb642d82d13dabf72941e07f225f06..62063a1fb0452691363938113da14c5fd30b3938 100644 (file)
@@ -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)