From: Jacob Lifshay Date: Fri, 26 Aug 2022 08:46:06 +0000 (-0700) Subject: add support for comments in instructions X-Git-Tag: sv_maxu_works-initial~89 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bde04b5daa09b6bef4e8950d8b054313eb977a1;p=openpower-isa.git add support for comments in instructions --- diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index bcfa0cc8..a9fe231b 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -622,8 +622,9 @@ class SVP64Asm: macros.update(self.macros) isa = self.isa svp64 = self.svp64 + insn_no_comments = insn.partition('#')[0] # find first space, to get opcode - ls = insn.split(' ') + ls = insn_no_comments.split(' ') opcode = ls[0] # now find opcode fields fields = ''.join(ls[1:]).split(',')