Lines Matching +full:sub +full:- +full:spaces
4 ## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved.
42 opswithequal_re = "[-+^&|!<>=]?="
44 assignment_re = "[-+^&|]?="
47 # assignment, spaces will be added around it, unless it's enclosed within
48 # parentheses, or spaces are already present.
62 pc -= 1
67 # match is also an assignment operator, add spaces around it if
81 if am and len(am.group(0)) == me - ms:
82 # Don't add spaces if they are already there.
83 if ms > 0 and s[ms - 1] != " ":
101 immext_casere = re.compile(r"IMMEXT\(([A-Za-z])")
103 with open(sys.argv[-1], "w") as f:
116 beh = hex_common.regre.sub(regprinter, beh)
117 beh = hex_common.absimmre.sub(r"#%s0x%x", beh)
118 beh = hex_common.relimmre.sub(r"PC+%s%d", beh)
138 f.write(f", insn->regno[{regno}]")
140 f.write(f", sreg2str(insn->regno[{regno}])")
142 f.write(f", creg2str(insn->regno[{regno}])")
144 f.write(f", insn->regno[{regno}] + 1" f", insn->regno[{regno}]")
155 f.write(',insn->extension_valid?"##":""')
157 f.write(',insn->extension_valid?"#":""')
164 f.write(',insn->extension_valid?"##":""')
166 f.write(',insn->extension_valid?"#":""')
170 f.write(f", insn->immed[{ii}]")