From: Luke Kenneth Casson Leighton Date: Sat, 4 Apr 2020 20:22:30 +0000 (+0100) Subject: remove extraneous statement X-Git-Tag: div_pipeline~1519 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41ae599937d95ef127106f074fc4661b4ab99da0;p=soc.git remove extraneous statement --- diff --git a/src/soc/decoder/power_pseudo.py b/src/soc/decoder/power_pseudo.py index 3bd52a3a..37a5d72b 100644 --- a/src/soc/decoder/power_pseudo.py +++ b/src/soc/decoder/power_pseudo.py @@ -136,9 +136,11 @@ MEM(EA, 4) <- GPR(r)[32:63] testdo = r""" for i = 0 to 7 - print(i) + print(i) """ + code = testdo +code = _bpermd #code = testmul #code = testgetzero #code = testcat diff --git a/src/soc/decoder/pseudo/parser.py b/src/soc/decoder/pseudo/parser.py index 60a815c4..c7db0cbd 100644 --- a/src/soc/decoder/pseudo/parser.py +++ b/src/soc/decoder/pseudo/parser.py @@ -383,7 +383,6 @@ class PowerParser: def p_for_stmt(self, p): """for_stmt : FOR test EQ test TO test COLON suite """ - p[0] = ast.While(p[2], p[4], []) # auto-add-one (sigh) due to python range start = p[4] end = ast.BinOp(p[6], ast.Add(), ast.Constant(1))