[v2,0/4] bpf gas updates

Message ID 20260331204212.3992270-1-vineet.gupta@linux.dev
Headers
Series bpf gas updates |

Message

Vineet Gupta March 31, 2026, 8:42 p.m. UTC
  Hi,

This is a followup to [1] for supporting load/stores with r or w regs
albeit same encodings.

Changes since v1:
 - Replace duplicate insn entries with a new reg format specifier.
 - De-duplicate some existing code for r and w regs handling.

Thx,
-Vineet

[1] https://sourceware.org/pipermail/binutils/2026-March/148775.html

Vineet Gupta (4):
  bpf: print failing insn for unexpected register
  bpf: consolidate register format specifier handling [NFC]
  PR 34029: bpf: add %dR/%sR register format specifiers
  PR 34029: bpf: allow w regs in load/store insns similar to llvm

 gas/config/tc-bpf.c                           | 64 ++++++-------------
 gas/testsuite/gas/bpf/mem-be-pseudoc.d        | 32 ++++++----
 gas/testsuite/gas/bpf/mem-pseudoc.d           | 32 ++++++----
 gas/testsuite/gas/bpf/mem-pseudoc.s           |  6 ++
 .../gas/bpf/regs-for-symbols-pseudoc.l        | 14 ++--
 include/opcode/bpf.h                          |  4 +-
 opcodes/bpf-dis.c                             | 18 ++----
 opcodes/bpf-opc.c                             | 12 ++--
 8 files changed, 86 insertions(+), 96 deletions(-)