[0] * XLEN
have to keep a close eye on this
[0]*(XLEN-16)
"""
-code = concat_test2
+concat_test3 = """
+[0]*XLEN
+"""
+
+code = concat_test3
#code = concat_test1
#code = XLEN_test
#code = logictest
if p[2] != '*': # multiply
return False
if (not isinstance(p[3], ast.Constant) and # rhs = Num
- not isinstance(p[3], ast.BinOp)): # rhs = (XLEN-something)
+ not isinstance(p[3], ast.BinOp) and # rhs = (XLEN-something)
+ not isinstance(p[3], ast.Name)): # rhs = XLEN
return False
if not isinstance(p[1], ast.List): # lhs is a list
return False