[0/3] bpf gas updates

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

Message

Vineet Gupta March 30, 2026, 10:42 p.m. UTC
  Hi,
These patches came out of some gcc work. That is now dropped but these
seem something that could be useful still.

Thx,
-Vineet

Vineet Gupta (3):
  bpf: print failing insn for unexpected register
  PR 34029: bpf: allow w regs in store insns similar to llvm
  PR 34029: bpf: allow w regs in load insns similar to llvm

 gas/config/tc-bpf.c                              |  6 ++++--
 gas/testsuite/gas/bpf/mem-be-pseudoc.d           |  8 +++++++-
 gas/testsuite/gas/bpf/mem-pseudoc.d              |  8 +++++++-
 gas/testsuite/gas/bpf/mem-pseudoc.s              |  6 ++++++
 gas/testsuite/gas/bpf/regs-for-symbols-pseudoc.l | 14 +++++++-------
 include/opcode/bpf.h                             |  2 ++
 opcodes/bpf-opc.c                                | 12 ++++++++++++
 7 files changed, 45 insertions(+), 11 deletions(-)
  

Comments

Vineet Gupta March 30, 2026, 10:50 p.m. UTC | #1
Some caveats I should have covered already.

On 3/30/26 3:42 PM, Vineet Gupta wrote:
> Hi,
> These patches came out of some gcc work. That is now dropped but these
> seem something that could be useful still.

This is specifically for [1]

[1] https://gcc.gnu.org/pipermail/bpf/2026-March/000077.html

And for the patchset (all 3 patches), while the actual code changes were 
done by human (me), the testsuite fixes were actually generated by 
Claude. But I take full responsibility for anything that's amiss and 
will be willing to fix that.

Cheers,
-Vineet

>
> Thx,
> -Vineet
>
> Vineet Gupta (3):
>    bpf: print failing insn for unexpected register
>    PR 34029: bpf: allow w regs in store insns similar to llvm
>    PR 34029: bpf: allow w regs in load insns similar to llvm
>
>   gas/config/tc-bpf.c                              |  6 ++++--
>   gas/testsuite/gas/bpf/mem-be-pseudoc.d           |  8 +++++++-
>   gas/testsuite/gas/bpf/mem-pseudoc.d              |  8 +++++++-
>   gas/testsuite/gas/bpf/mem-pseudoc.s              |  6 ++++++
>   gas/testsuite/gas/bpf/regs-for-symbols-pseudoc.l | 14 +++++++-------
>   include/opcode/bpf.h                             |  2 ++
>   opcodes/bpf-opc.c                                | 12 ++++++++++++
>   7 files changed, 45 insertions(+), 11 deletions(-)
>