From: Luke Kenneth Casson Leighton Date: Thu, 27 Oct 2022 21:28:37 +0000 (+0100) Subject: add test for identifying [expr] * name in parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27b46eef3bc2661031a6625312f278022c1e096f;p=openpower-isa.git add test for identifying [expr] * name in parser --- diff --git a/src/openpower/decoder/pseudo/parser.py b/src/openpower/decoder/pseudo/parser.py index 46b16334..1e6a330f 100644 --- a/src/openpower/decoder/pseudo/parser.py +++ b/src/openpower/decoder/pseudo/parser.py @@ -195,7 +195,8 @@ def identify_sint_mul_pattern(p): return False if (not isinstance(p[3], ast.Constant) and # rhs = Num not isinstance(p[3], ast.BinOp) and # rhs = (XLEN-something) - not isinstance(p[3], ast.Attribute)): # rhs = XLEN + (not isinstance(p[3], ast.Name) and # rhs = {a variable} + not isinstance(p[3], ast.Attribute))): # rhs = XLEN return False if not isinstance(p[1], ast.List): # lhs is a list return False