From: Dmitry Selyutin Date: Sun, 18 Dec 2022 18:36:09 +0000 (+0300) Subject: pysvp64asm: avoid empty fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1bb73777b241c9f77059b6a9e6828b5571757be;p=openpower-isa.git pysvp64asm: avoid empty fields --- 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