fix pattern-match for an expression such as "XLEN-16" when looking
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 12:03:53 +0000 (13:03 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 12:03:53 +0000 (13:03 +0100)
commit39a0dc7397c592b4b53631b2284d142fd20ac485
tree5d076ef0e509431df497b75141735777c56a120e
parenta37e6dfd81d20350db6daec84eecd0d3fd433e97
fix pattern-match for an expression such as "XLEN-16" when looking
for concat substitutions

[item] * NUMBER was replaced with
concat(item, repeat=NUMBER)

but [item] * (XLEN-16) was not matching

by adding a HACK which spots ast.Binop then [item]*(XLEN-16) can be
recognised
src/openpower/decoder/power_pseudo.py
src/openpower/decoder/pseudo/parser.py