[PATCH] D147421: [BPF] Fix assembly parsing errors for atomic_fetch_* instructions

Eduard Zingerman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 19:27:39 PDT 2023


eddyz87 created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
eddyz87 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixes BPF assembler parsing errors for the following instructions:

- atomic_fetch_add
- atomic_fetch_and
- atomic_fetch_xor
- atomic_fetch_or
- cmpxchg32_32
- cmpxchg_64
- xchg32_32
- xchg_64

Also add a test to verify that all instructions could be assembled and disassembled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147421

Files:
  llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
  llvm/test/CodeGen/BPF/assembler-disassembler.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147421.510380.patch
Type: text/x-patch
Size: 11629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/73daae88/attachment.bin>


More information about the llvm-commits mailing list