We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f1516 commit 3729d15Copy full SHA for 3729d15
1 file changed
src/cleanup/gcn.jl
@@ -70,6 +70,11 @@ function align_instruction_operand(column)
70
mnemonic_end = m.offsets[1]
71
old_operands_pos = m.offsets[2]
72
73
+ if all(isspace, m[2])
74
+ # In case the operands are just trailing spaces, return only the mnemonic
75
+ return m.match[1:mnemonic_end-1]
76
+ end
77
+
78
# Set a minimum of spaces between the mnemonic and the operands
79
old_spaces_count = old_operands_pos - mnemonic_end
80
if old_spaces_count < min_spaces
0 commit comments