From: Luke Kenneth Casson Leighton Date: Sun, 24 Jan 2021 11:35:43 +0000 (+0000) Subject: changing svp64 asm syntax to use / instead of . as separators X-Git-Tag: 24jan2021_ls180 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=290c36c7210934b5f832ccb97a112e490af45169;p=soc.git changing svp64 asm syntax to use / instead of . as separators --- diff --git a/src/soc/sv/trans/svp64.py b/src/soc/sv/trans/svp64.py index 79090c96..0a9af5a6 100644 --- a/src/soc/sv/trans/svp64.py +++ b/src/soc/sv/trans/svp64.py @@ -169,14 +169,9 @@ class SVP64: continue opcode = opcode[3:] # strip leading "sv." - # start working on decoding the svp64 op: sv.baseop/vec2.mode - opcode = opcode.split("/") # split at "/" - v30b_op = opcode[0] # first is the v3.0B - if len(opcode) == 1: - opmodes = [] # no sv modes - else: - opmodes = opcode[1].split(".") # second splits by dots - + # start working on decoding the svp64 op: sv.basev30Bop/vec2/mode + opmodes = opcode.split("/") # split at "/" + v30b_op = opmodes.pop(0) # first is the v3.0B # check instruction ends with dot rc_mode = v30b_op.endswith('.') if rc_mode: @@ -598,11 +593,11 @@ if __name__ == '__main__': 'sv.cmpi 5, 1, 3, 2', 'sv.setb 5, 31', 'sv.isel 64.v, 3, 2, 65.v', - 'sv.setb/m=r3.sm=1<