Skip to content

Commit 2fe93dc

Browse files
author
Yonghong Song
committed
Ensure gotox to be the start of the asm insn.
Also remove gotol to be in the middle of asm insn.
1 parent 2ba950a commit 2fe93dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ struct BPFOperand : public MCParsedAsmOperand {
232232
.Case("callx", true)
233233
.Case("goto", true)
234234
.Case("gotol", true)
235+
.Case("gotox", true)
235236
.Case("may_goto", true)
236237
.Case("*", true)
237238
.Case("exit", true)
@@ -261,7 +262,6 @@ struct BPFOperand : public MCParsedAsmOperand {
261262
.Case("bswap32", true)
262263
.Case("bswap64", true)
263264
.Case("goto", true)
264-
.Case("gotol", true)
265265
.Case("ll", true)
266266
.Case("skb", true)
267267
.Case("s", true)

0 commit comments

Comments
 (0)