From 27b46eef3bc2661031a6625312f278022c1e096f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 Oct 2022 22:28:37 +0100 Subject: [PATCH] add test for identifying [expr] * name in parser --- src/openpower/decoder/pseudo/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2