oppc/code: assume 1 bit for subscript expr
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 14 Jan 2024 20:49:17 +0000 (23:49 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index 170c701113e05a53f798bcafa82491f5775f1c40..41e95c6c9de336b7d84086209f39cee796092c6b 100644 (file)
@@ -439,7 +439,7 @@ class CodeVisitor(pc_util.Visitor):
     @pc_util.Hook(pc_ast.SubscriptExpr)
     def SubscriptExpr(self, node):
         yield node
-        transient = self.transient()
+        transient = self.transient(bits="UINT8_C(1)")
         call = self.call(name="oppc_subscript", code=[
             self[transient],
             self[node.subject],