From 5764c3597892f87bee4850f11b93352cc871320f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 Jan 2024 16:44:25 +0300 Subject: [PATCH] oppc/code: support concatenation --- src/openpower/oppc/pc_code.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2