From 2bde04b5daa09b6bef4e8950d8b054313eb977a1 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 26 Aug 2022 01:46:06 -0700 Subject: [PATCH] add support for comments in instructions --- src/openpower/sv/trans/svp64.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(',') -- 2.30.2