From 41ae599937d95ef127106f074fc4661b4ab99da0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 4 Apr 2020 21:22:30 +0100 Subject: [PATCH] remove extraneous statement --- src/soc/decoder/power_pseudo.py | 4 +++- src/soc/decoder/pseudo/parser.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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)) -- 2.30.2