projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5a5717
)
pysvp64asm: avoid empty fields
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 18 Dec 2022 18:36:09 +0000
(21:36 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 15 Jan 2023 19:47:22 +0000
(22:47 +0300)
src/openpower/sv/trans/svp64.py
patch
|
blob
|
history
diff --git
a/src/openpower/sv/trans/svp64.py
b/src/openpower/sv/trans/svp64.py
index 2a17ec3d0bc46a796ada7c33dd1e5600d8920dd8..1e38dc14a76ed4c77b2afa858548f52fdcfb7998 100644
(file)
--- 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