From eb3749d298f596b43e662813bc094d0c8c8b7e2f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 18 Dec 2022 21:36:09 +0300 Subject: [PATCH] pysvp64asm: avoid empty fields --- src/openpower/sv/trans/svp64.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 2a17ec3d..1e38dc14 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -254,7 +254,7 @@ class SVP64Asm: opcode = ls[0] # now find opcode fields fields = ''.join(ls[1:]).split(',') - mfields = list(map(str.strip, fields)) + mfields = list(filter(bool, map(str.strip, fields))) log("opcode, fields", ls, opcode, mfields) fields = [] # macro substitution -- 2.30.2